summaryrefslogtreecommitdiff
path: root/ssg.go
diff options
context:
space:
mode:
Diffstat (limited to 'ssg.go')
-rw-r--r--ssg.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ssg.go b/ssg.go
index 743369d..7feb7e6 100644
--- a/ssg.go
+++ b/ssg.go
@@ -30,8 +30,8 @@ type PostMetadata struct {
Description string
}
-func buildTemplate(f string, w io.Writer, data interface{}) error {
- tmpl, err := template.ParseFiles("base.html", "head.html", f)
+func buildTemplate(w io.Writer, data interface{}) error {
+ tmpl, err := template.ParseFiles("base.html", "head.html", "body.html")
if err != nil {
return err
}
@@ -120,7 +120,7 @@ func main() {
for _, ppost := range pposts {
fmt.Fprintf(os.Stderr, "name: %s, description: %s\n", ppost.Metadata.Name, ppost.Metadata.Description)
}
- err = buildTemplate("index.html", idx, pposts)
+ err = buildTemplate(idx, pposts)
if err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)