aboutsummaryrefslogtreecommitdiff
path: root/index.go
diff options
context:
space:
mode:
Diffstat (limited to 'index.go')
-rw-r--r--index.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.go b/index.go
index a9613fd..14f0ca9 100644
--- a/index.go
+++ b/index.go
@@ -20,7 +20,7 @@ func indexHandler(w http.ResponseWriter, r *http.Request) {
for _, entry := range files {
file := entry.Name()
if !entry.IsDir() && file[0] != '.' {
- p.Pages = append(p.Pages, file)
+ p.Pages = append(p.Pages, entry)
}
}
p.render(w, template.Must(template.ParseFiles("tmpl/root", "tmpl/index")))