summaryrefslogtreecommitdiff
path: root/layouts/partials/post_meta.html
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-10-20 18:38:29 +0530
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-10-22 16:53:24 +0530
commit684cb2160fc84a75e17c5d423c000dc94487839e (patch)
tree5ce234e32c72f1efecfc419454f3b1b52c53f56c /layouts/partials/post_meta.html
parent3d6037049459a0dec8a5797021f1ee39267fd725 (diff)
layouts: post_meta as partial
Diffstat (limited to 'layouts/partials/post_meta.html')
-rw-r--r--layouts/partials/post_meta.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html
new file mode 100644
index 0000000..dd3b9a5
--- /dev/null
+++ b/layouts/partials/post_meta.html
@@ -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 }}