aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--page/index.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/page/index.go b/page/index.go
index 75cbe87..7dd736e 100644
--- a/page/index.go
+++ b/page/index.go
@@ -48,11 +48,15 @@ func (p *Page) Index() (map[string]PageList, error) {
}
if !info.IsDir() && strings.HasSuffix(info.Name(), Suffix) {
+ if path == BaseTemplate { // Plain template, not a page
+ return nil
+ }
p2 := NewPage(strings.ReplaceAll(path, Suffix, ""))
err = p2.Read()
if err != nil {
- Logger.Println("Error encountered: ", err)
+ Logger.Printf("Error encountered: %s: %s\n",
+ path, err)
return err
}