Changeset 29 in code
- Timestamp:
- Aug 30, 2015, 1:50:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zs.go
r28 r29 36 36 url := path[:len(path)-len(filepath.Ext(path))] + ".html" 37 37 v := Vars{ 38 "file": path, 39 "url": url, 40 "output": filepath.Join(PUBDIR, url), 38 "file": path, 39 "url": url, 40 "title": "", 41 "description": "", 42 "keywords": "", 43 "output": filepath.Join(PUBDIR, url), 41 44 } 42 45 if _, err := os.Stat(filepath.Join(ZSDIR, "layout.amber")); err == nil { … … 46 49 } 47 50 48 if info, err := os.Stat(path); err == nil {49 v["date"] = info.ModTime().Format("02-01-2006")50 }51 51 for name, value := range globals { 52 52 v[name] = value
Note:
See TracChangeset
for help on using the changeset viewer.