summaryrefslogtreecommitdiff
path: root/kew.go
diff options
context:
space:
mode:
authoruint <abhinav.prsai@gmail.com>2025-12-19 20:55:25 +0000
committeruint <abhinav.prsai@gmail.com>2025-12-19 20:55:25 +0000
commitea07de1161e3aec73981f0a6c0f7589e1b7e6952 (patch)
tree7a0013f8896691bc2ec9591194e4512b62ca8dac /kew.go
parent8bb441d9f9860c7e4c2f249e71fe859b23ec96aa (diff)
skip all index files when building navbar
Diffstat (limited to 'kew.go')
-rw-r--r--kew.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/kew.go b/kew.go
index 2f1a850..82c29a9 100644
--- a/kew.go
+++ b/kew.go
@@ -57,6 +57,9 @@ func build_nav(dir string, root string) (NavNode, bool) {
}
if strings.HasSuffix(e.Name(), ".md") {
+ if e.Name() == "index.md" {
+ continue
+ }
rel, _ := filepath.Rel(root, full)
html := strings.TrimSuffix(rel, ".md") + ".html"