diff options
| author | Adam Whitlock <adam@adamwhitlock.com> | 2022-01-09 17:28:44 -0600 |
|---|---|---|
| committer | Adam Whitlock <adam@adamwhitlock.com> | 2022-01-09 17:28:44 -0600 |
| commit | a27f871d8cb306d7bef56fa0a1df0e8b84103103 (patch) | |
| tree | 90b6efd659997cdd0413c46a19a52b2abfa0d06a /layouts/_default | |
| parent | c89ea0304f4a48ff9ded5c6f3b8f5883eb913e7f (diff) | |
Fixed date on posts and index
Diffstat (limited to 'layouts/_default')
| -rw-r--r-- | layouts/_default/single.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 4ac5d36..0947162 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -13,11 +13,11 @@ <div class="columns"> <div class="column"> <div class="content"> - <p class="title is-3">{{.Page.Title | title }}</p> + <h1 class="title is-3">{{.Page.Title | title }}</h1> + <h2 class="subtitle is-5"><time>{{ .Date.Format "Jan 2, 2006" }}</time></h2> + {{ $dateFormat := .Site.Params.dateFormat | default "January 2, 2006"}}{{ if ne .Lastmod .PublishDate }}, last updated on {{ .Lastmod.Format $dateFormat }}{{ end }} <p class="subtitle is-4">{{.Page.Description}}</p> - {{ $dateFormat := .Site.Params.dateFormat | default "January 2, 2006"}} - <p class="date">Published on {{ .PublishDate.Format $dateFormat }}{{ if ne .Lastmod .PublishDate }}, last updated on {{ .Lastmod.Format $dateFormat }} - {{ end }} + <p class="date">Published on {{ .PublishDate.Format $dateFormat }} </p> {{ .Content }} </div> |
