From 06c6523b5d6356833cbef34e63a7d7247191c18e Mon Sep 17 00:00:00 2001 From: Keith Solomon Date: Mon, 21 Apr 2025 15:47:03 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20Remove=20debug=20print=20?= =?UTF-8?q?statements?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/main.go b/main.go index fa77fc7..ea08e34 100644 --- a/main.go +++ b/main.go @@ -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,