]> Nishi Git Mirror - aya.git/commitdiff
removed default date value, added some default title/description/keywords for markdown
authorSerge A. Zaitsev <zaitsev.serge@gmail.com>
Sun, 30 Aug 2015 13:50:03 +0000 (15:50 +0200)
committerSerge A. Zaitsev <zaitsev.serge@gmail.com>
Sun, 30 Aug 2015 13:50:03 +0000 (15:50 +0200)
zs.go

diff --git a/zs.go b/zs.go
index 534d5167ca7ac239fc2c6a09a0e00b1262efaa78..a8d2c5a76ef12582575e53e71f8bc805da72c58a 100644 (file)
--- a/zs.go
+++ b/zs.go
@@ -35,9 +35,12 @@ func md(path string, globals Vars) (Vars, string, error) {
        s := string(b)
        url := path[:len(path)-len(filepath.Ext(path))] + ".html"
        v := Vars{
-               "file":   path,
-               "url":    url,
-               "output": filepath.Join(PUBDIR, url),
+               "file":        path,
+               "url":         url,
+               "title":       "",
+               "description": "",
+               "keywords":    "",
+               "output":      filepath.Join(PUBDIR, url),
        }
        if _, err := os.Stat(filepath.Join(ZSDIR, "layout.amber")); err == nil {
                v["layout"] = "layout.amber"
@@ -45,9 +48,6 @@ func md(path string, globals Vars) (Vars, string, error) {
                v["layout"] = "layout.html"
        }
 
-       if info, err := os.Stat(path); err == nil {
-               v["date"] = info.ModTime().Format("02-01-2006")
-       }
        for name, value := range globals {
                v[name] = value
        }