layouts: use author partial in head and post_meta

This commit is contained in:
Aditya Telange committed 2020-10-25 12:47:09 +05:30
1 parent bc2b82c370
commit 5b9eaac130
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -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 . " · "}}