From: Serge A. Zaitsev Date: Sun, 30 Aug 2015 13:50:03 +0000 (+0200) Subject: removed default date value, added some default title/description/keywords for markdown X-Git-Tag: 0.0.1~21 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=70ba7396ffc530961c31decb5f6cfb379a2ed2a4;p=aya.git removed default date value, added some default title/description/keywords for markdown --- diff --git a/zs.go b/zs.go index 534d516..a8d2c5a 100644 --- 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 }