add ShowAuthor param
This commit is contained in:
parent
9377da773c
commit
2628a07c95
|
@ -12,9 +12,11 @@
|
||||||
{{- $scratch.Add "meta" (slice (i18n "words" .WordCount | default (printf "<span>%d words</span>" .WordCount))) }}
|
{{- $scratch.Add "meta" (slice (i18n "words" .WordCount | default (printf "<span>%d words</span>" .WordCount))) }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if (.Param "ShowAuthor") -}}
|
||||||
{{- with (partial "author.html" .) }}
|
{{- with (partial "author.html" .) }}
|
||||||
{{- $scratch.Add "meta" (slice .) }}
|
{{- $scratch.Add "meta" (slice .) }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{- with ($scratch.Get "meta") }}
|
{{- with ($scratch.Get "meta") }}
|
||||||
{{- delimit . "<span class=\"delimiter\"> · </span>" -}}
|
{{- delimit . "<span class=\"delimiter\"> · </span>" -}}
|
||||||
|
|
Loading…
Reference in New Issue