diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-09-15 22:32:34 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-09-15 22:32:34 +0530 |
| commit | 6813112e25a6df82531306e0c5ccad3d823fdc4f (patch) | |
| tree | fbc3c86ff1a736e25c8f44e058e4cf99bf54689d | |
| parent | 9c861cb77f865d086dacea965907addf1dbf3363 (diff) | |
layouts: single: update post meta
| -rw-r--r-- | layouts/_default/single.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index a10ce57..ded367b 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -8,9 +8,9 @@ </h1> {{ if .Params.hideMeta }}{{ else }} <div class="post-meta"> - {{- if or .Params.author .Site.Params.author }} - {{- .Params.author | default .Site.Params.author }} ยท {{ end }} - {{- .Date.Format "January 2, 2006" -}} + <time>{{ .Date.Format "January 2, 2006" }}</time> + {{ if or .Params.author .Site.Params.author }} . {{ .Params.author | default .Site.Params.author }}{{ end }} + {{ if $.Site.Params.ShowReadingTime }} . {{ .ReadingTime }}{{ i18n "read_time" | default "min read" }}{{ end }} </div> {{end}} </header> |
