summaryrefslogtreecommitdiff
path: root/layouts/partials/post_meta.html
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-10-25 12:47:09 +0530
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-10-25 12:47:09 +0530
commit5b9eaac1306044922f0a9ec3806a786a0cdd036f (patch)
tree36d5d62dd9e3810c70a0cff89d92f7f31abc981e /layouts/partials/post_meta.html
parentbc2b82c370be7a5554cd886033b3e3e0d21bdea2 (diff)
layouts: use author partial in head and post_meta
Diffstat (limited to 'layouts/partials/post_meta.html')
-rw-r--r--layouts/partials/post_meta.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html
index 1b32947..e0dbef4 100644
--- a/layouts/partials/post_meta.html
+++ b/layouts/partials/post_meta.html
@@ -8,9 +8,9 @@
{{- $scratch.Add "meta" (slice (i18n "read_time" .ReadingTime | default (printf "%s min" .ReadingTime))) }}
{{- end -}}
-{{- if or .Params.author .Site.Params.author }}
-{{- $scratch.Add "meta" (slice (.Params.author | default .Site.Params.author)) }}
-{{- end -}}
+{{ with (partial "author.html" . ) }}
+{{ $scratch.Add "meta" (slice .)}}
+{{end}}
{{- with ($scratch.Get "meta")}}
{{- delimit . "&nbsp;ยท&nbsp;"}}