layouts: use author partial in head and post_meta
This commit is contained in:
parent
bc2b82c370
commit
5b9eaac130
2 changed files with 4 additions and 4 deletions
|
|
@ -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 . " · "}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue