all repos — vite @ bccbb63739e6fc5692240f202e381752696dcfbf

a fast (this time, actually) and minimal static site generator

Parse date format from config
Anirudh Oppiliappan x@icyphox.sh
Tue, 01 Dec 2020 18:45:54 +0530
commit

bccbb63739e6fc5692240f202e381752696dcfbf

parent

1e6bde1d6ac06b0921c56a935ddeaa4c8775e055

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M build.gobuild.go

@@ -83,7 +83,7 @@ fm.Template,

fm.URL, fm.Title, fm.Subtitle, - fm.Date.Time.Format("02 January, 2006"), + fm.Date.Time.Format(cfg.DateFmt), fm.Body, } // combine config and matter structs
M config.goconfig.go

@@ -8,6 +8,7 @@

type Config struct { Title string `yaml:"title"` Header string `yaml:"header"` + DateFmt string `yaml:datefmt` SiteURL string `yaml:"siteurl"` Description string `yaml:"description"` Author map[string]string `yaml:"author"`