layouts: single: update post meta

This commit is contained in:
Aditya Telange 2020-09-15 22:32:34 +05:30
parent 9c861cb77f
commit 6813112e25
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77

View File

@ -8,9 +8,9 @@
</h1> </h1>
{{ if .Params.hideMeta }}{{ else }} {{ if .Params.hideMeta }}{{ else }}
<div class="post-meta"> <div class="post-meta">
{{- if or .Params.author .Site.Params.author }} <time>{{ .Date.Format "January 2, 2006" }}</time>
{{- .Params.author | default .Site.Params.author }} · {{ end }} {{ if or .Params.author .Site.Params.author }} . {{ .Params.author | default .Site.Params.author }}{{ end }}
{{- .Date.Format "January 2, 2006" -}} {{ if $.Site.Params.ShowReadingTime }} . {{ .ReadingTime }}{{ i18n "read_time" | default "min read" }}{{ end }}
</div> </div>
{{end}} {{end}}
</header> </header>