Parse date format from config
bccbb63739e6fc5692240f202e381752696dcfbf
1e6bde1d6ac06b0921c56a935ddeaa4c8775e055
@@ -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
@@ -83,7 +83,7 @@ fm.Template,
@@ -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"`
@@ -8,6 +8,7 @@