🐞 fix: Remove debug print statements
This commit is contained in:
5
main.go
5
main.go
@@ -55,9 +55,6 @@ func main() {
|
|||||||
|
|
||||||
entries, _ := os.ReadDir(contentDir)
|
entries, _ := os.ReadDir(contentDir)
|
||||||
nav := buildNav(entries, contentDir)
|
nav := buildNav(entries, contentDir)
|
||||||
for _, item := range nav {
|
|
||||||
fmt.Printf("Nav: %s (%s) — Pos: %d\n", item.Title, item.URL, item.Position)
|
|
||||||
}
|
|
||||||
renderStaticPages(files, contentDir, outputDir, tpl, nav)
|
renderStaticPages(files, contentDir, outputDir, tpl, nav)
|
||||||
blogPosts, categoryMap := processBlogPosts(contentDir, outputDir, tpl, nav)
|
blogPosts, categoryMap := processBlogPosts(contentDir, outputDir, tpl, nav)
|
||||||
renderContactPage(contentDir, outputDir, tpl, nav)
|
renderContactPage(contentDir, outputDir, tpl, nav)
|
||||||
@@ -90,7 +87,6 @@ func buildNav(entries []fs.DirEntry, contentDir string) []NavItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
meta, _ := parseFrontMatter(rawContent)
|
meta, _ := parseFrontMatter(rawContent)
|
||||||
fmt.Printf("meta from %s: %+v\n", entry.Name(), meta)
|
|
||||||
|
|
||||||
// Skip pages with showInNav: false
|
// Skip pages with showInNav: false
|
||||||
if meta.ShowInNav != nil && !*meta.ShowInNav {
|
if meta.ShowInNav != nil && !*meta.ShowInNav {
|
||||||
@@ -369,7 +365,6 @@ func buildBlogIndex(posts []PageMeta, tpl *template.Template, outputDir string,
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("Rendering blog index: %d posts\n", len(posts))
|
|
||||||
tpl.ExecuteTemplate(outFile, "blog_index_page", map[string]interface{}{
|
tpl.ExecuteTemplate(outFile, "blog_index_page", map[string]interface{}{
|
||||||
"Title": "Blog Index",
|
"Title": "Blog Index",
|
||||||
"Posts": posts,
|
"Posts": posts,
|
||||||
|
|||||||
Reference in New Issue
Block a user