diff options
| author | Reorx <novoreorx@gmail.com> | 2022-04-21 17:32:29 +0800 |
|---|---|---|
| committer | Reorx <novoreorx@gmail.com> | 2022-04-21 17:32:29 +0800 |
| commit | 2628a07c95a7205a09b2f7bdefe9629c7400e423 (patch) | |
| tree | 18c18bbb7f5c9557cd30f2ae92039c74d2c834f9 | |
| parent | 9377da773c41b31862cc5144280820a832658ef4 (diff) | |
add ShowAuthor param
| -rw-r--r-- | layouts/partials/post_meta.html | 2 |
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\"> ยท </span>" -}} |
