skip all index files when building navbar

This commit is contained in:
uint 2025-12-19 20:55:25 +00:00
commit ea07de1161
2 changed files with 5 additions and 0 deletions

View file

@ -1 +1,3 @@
# big boring blogs # big boring blogs
- [why think?](why-do-we-think.md)

3
kew.go
View file

@ -57,6 +57,9 @@ func build_nav(dir string, root string) (NavNode, bool) {
} }
if strings.HasSuffix(e.Name(), ".md") { if strings.HasSuffix(e.Name(), ".md") {
if e.Name() == "index.md" {
continue
}
rel, _ := filepath.Rel(root, full) rel, _ := filepath.Rel(root, full)
html := strings.TrimSuffix(rel, ".md") + ".html" html := strings.TrimSuffix(rel, ".md") + ".html"