commit 128386d

0uppy  ·  2026-05-10 17:12:48 +0000 UTC
parent 8f20beb
ssg: fixed some stuff that made it so the entire page could not big
1 files changed,  +3, -3
+3, -3
 1@@ -60,7 +60,7 @@ func BuildPage(w io.Writer, name string, path string, page string, markdown gold
 2 	}
 3 	frontmatter := meta.Get(ctx)
 4 	var templateName string
 5-	switch v := frontmatter["title"]; v {
 6+	switch v := frontmatter["template"]; v {
 7 	case nil:
 8 		if name == "index" {
 9 			templateName = "index"
10@@ -95,8 +95,8 @@ func BuildPage(w io.Writer, name string, path string, page string, markdown gold
11 		Config:      config,
12 		Content:     buff.String(),
13 	}
14-	if err := BuildTemplate(w, path, templates[templateName], templateData); err != nil {
15+	if err := BuildTemplate(w, name, templates[templateName], templateData); err != nil {
16 		return err
17 	}
18 	return nil
19-}
20+}