diff options
| author | uint <abhinav.prsai@gmail.com> | 2025-12-19 20:55:25 +0000 |
|---|---|---|
| committer | uint <abhinav.prsai@gmail.com> | 2025-12-19 20:55:25 +0000 |
| commit | ea07de1161e3aec73981f0a6c0f7589e1b7e6952 (patch) | |
| tree | 7a0013f8896691bc2ec9591194e4512b62ca8dac | |
| parent | 8bb441d9f9860c7e4c2f249e71fe859b23ec96aa (diff) | |
skip all index files when building navbar
| -rw-r--r-- | example/blog/index.md | 2 | ||||
| -rw-r--r-- | kew.go | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/example/blog/index.md b/example/blog/index.md index cbf130c..9974bf9 100644 --- a/example/blog/index.md +++ b/example/blog/index.md @@ -1 +1,3 @@ # big boring blogs + +- [why think?](why-do-we-think.md) @@ -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" |
