layouts: post_meta as partial

This commit is contained in:
Aditya Telange committed 2020-10-22 16:53:24 +05:30
1 parent 3d60370494
commit 684cb2160f
4 files changed
+9 -16

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
<time>{{ .Date.Format (default "January 2, 2006" .Site.Params.DateFormat) }}</time>
{{- if $.Site.Params.ShowReadingTime -}}&nbsp;·&nbsp;
{{- $default_txt := print .ReadingTime " " "min" }}
{{- i18n "read_time" .ReadingTime | default $default_txt }}{{ end }}
{{- if or .Params.author .Site.Params.author }}&nbsp;·&nbsp;{{- .Params.author | default .Site.Params.author }}{{ end }}