diff options
author | Zachary Betz <zwbetz@gmail.com> | 2018-11-27 23:49:25 +0300 |
---|---|---|
committer | Zachary Betz <zwbetz@gmail.com> | 2018-11-27 23:49:25 +0300 |
commit | 74322e9842342f0610e004cd4d7b5414bc54cde4 (patch) | |
tree | bd57e05ee62ce1a7a01284507514fbc9f4a3bfb1 /layouts | |
parent | f7228138e3262f2d6195d5789ea78fd4bf420862 (diff) |
Update example site date format. Move post publish date to below title link. Add dev notes on how to build site against theme locally. Remove an old post
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/index.html | 1 | ||||
-rw-r--r-- | layouts/post/single.html | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html index f04f4dc..4254c90 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -8,6 +8,7 @@ <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> {{ $customDateFormat := "January 2, 2006" }} {{ with .Site.Params.customDateFormat }}{{ $customDateFormat = . }}{{ end }} + <br> <small class="text-secondary">{{ .PublishDate.Format $customDateFormat }}</small> {{ if eq .Site.Params.showPostSummary true }} <br> diff --git a/layouts/post/single.html b/layouts/post/single.html index d488760..9e70fe5 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -4,7 +4,7 @@ <p><small class="text-secondary"> {{ $customDateFormat := "January 2, 2006" }} {{ with .Site.Params.customDateFormat }}{{ $customDateFormat = . }}{{ end }} -{{ .PublishDate.Format $customDateFormat }}{{ if gt .Lastmod .PublishDate }}, last updated {{ .Lastmod.Format $customDateFormat }}{{ end }} +{{ .PublishDate.Format $customDateFormat }}{{ if gt .Lastmod .PublishDate }}, updated {{ .Lastmod.Format $customDateFormat }}{{ end }} </small></p> {{ .Content }} |