Changeset 30 in code
- Timestamp:
- Aug 30, 2015, 2:01:05 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zs.go
r29 r30 36 36 url := path[:len(path)-len(filepath.Ext(path))] + ".html" 37 37 v := Vars{ 38 "file": path,39 "url": url,40 38 "title": "", 41 39 "description": "", 42 40 "keywords": "", 43 "output": filepath.Join(PUBDIR, url), 41 } 42 for name, value := range globals { 43 v[name] = value 44 44 } 45 45 if _, err := os.Stat(filepath.Join(ZSDIR, "layout.amber")); err == nil { … … 48 48 v["layout"] = "layout.html" 49 49 } 50 51 for name, value := range globals {52 v[name] = value53 } 50 v["file"] = path 51 v["url"] = url 52 v["output"] = filepath.Join(PUBDIR, url) 53 54 54 if strings.Index(s, "\n\n") == -1 { 55 55 return v, s, nil
Note:
See TracChangeset
for help on using the changeset viewer.