summaryrefslogtreecommitdiff
path: root/site.go
diff options
context:
space:
mode:
Diffstat (limited to 'site.go')
-rw-r--r--site.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/site.go b/site.go
index 46e6cee..c7d3c19 100644
--- a/site.go
+++ b/site.go
@@ -43,6 +43,10 @@ func rootTree(root string, goal string) (NavTree, string) {
index = current
}
+ if info.IsDir() && info.Name()[0] == '.' {
+ return filepath.SkipDir
+ }
+
if current == root || info.Name()[0] == '.' {
return nil
}