🐞 fix: Remove debug print statements

This commit is contained in:
Keith Solomon
2025-04-21 15:47:03 -05:00
parent 77797231d3
commit 06c6523b5d

View File

@@ -55,9 +55,6 @@ func main() {
entries, _ := os.ReadDir(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)
blogPosts, categoryMap := processBlogPosts(contentDir, outputDir, tpl, nav)
renderContactPage(contentDir, outputDir, tpl, nav)
@@ -90,7 +87,6 @@ func buildNav(entries []fs.DirEntry, contentDir string) []NavItem {
}
meta, _ := parseFrontMatter(rawContent)
fmt.Printf("meta from %s: %+v\n", entry.Name(), meta)
// Skip pages with showInNav: false
if meta.ShowInNav != nil && !*meta.ShowInNav {
@@ -369,7 +365,6 @@ func buildBlogIndex(posts []PageMeta, tpl *template.Template, outputDir string,
return
}
fmt.Printf("Rendering blog index: %d posts\n", len(posts))
tpl.ExecuteTemplate(outFile, "blog_index_page", map[string]interface{}{
"Title": "Blog Index",
"Posts": posts,