diff --git a/config/_default/config.yaml b/config/_default/config.yaml index a17ce233..d076a055 100644 --- a/config/_default/config.yaml +++ b/config/_default/config.yaml @@ -13,6 +13,7 @@ disableRSS: false enableRobotsTXT: true Paginate: 8 rssLimit: 10 +enableGitInfo: true related: includeNewer: true threshold: 70 diff --git a/themes/fugu/layouts/post/single.html b/themes/fugu/layouts/post/single.html index 403f4d04..9cfe5a18 100644 --- a/themes/fugu/layouts/post/single.html +++ b/themes/fugu/layouts/post/single.html @@ -4,8 +4,13 @@ {{ end }} - {{ define "main"}} + +{{ $date := .Date.Format "2006-01-02" }} +{{ $lastmod := .Lastmod.Format "2006-01-02" }} + +{{ $date_h := .Date.Format "2006-01-02 15:04:05" }} +{{ $lastmod_h := .Lastmod.Format "2006-01-02 15:04:05" }}
{{ .Title }} {{ .Description }} - {{ range .Params.categories }}#{{ .}} {{ end }}{{ with .Params.tags }}{{ range sort . }}#{{ .}} {{ end }}{{ end }}
@@ -36,8 +41,16 @@