summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReorx <novoreorx@gmail.com>2022-04-21 17:32:29 +0800
committerReorx <novoreorx@gmail.com>2022-04-21 17:32:29 +0800
commit2628a07c95a7205a09b2f7bdefe9629c7400e423 (patch)
tree18c18bbb7f5c9557cd30f2ae92039c74d2c834f9
parent9377da773c41b31862cc5144280820a832658ef4 (diff)
add ShowAuthor param
-rw-r--r--layouts/partials/post_meta.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html
index 4758c05..38e957c 100644
--- a/layouts/partials/post_meta.html
+++ b/layouts/partials/post_meta.html
@@ -12,9 +12,11 @@
{{- $scratch.Add "meta" (slice (i18n "words" .WordCount | default (printf "<span>%d words</span>" .WordCount))) }}
{{- end }}
+{{- if (.Param "ShowAuthor") -}}
{{- with (partial "author.html" .) }}
{{- $scratch.Add "meta" (slice .) }}
{{- end }}
+{{- end }}
{{- with ($scratch.Get "meta") }}
{{- delimit . "<span class=\"delimiter\">&nbsp;ยท&nbsp;</span>" -}}