summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--example/blog/index.md2
-rw-r--r--kew.go3
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)
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"