From 754bef67a1622c224863397c448c9c7b9eed6bd6 Mon Sep 17 00:00:00 2001 From: rook1e Date: Mon, 24 Jul 2023 13:46:20 +0800 Subject: [PATCH] rename the variable to hideAuthor --- layouts/partials/post_meta.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html index 9c30834..8bc0e50 100644 --- a/layouts/partials/post_meta.html +++ b/layouts/partials/post_meta.html @@ -12,7 +12,7 @@ {{- $scratch.Add "meta" (slice (i18n "words" .WordCount | default (printf "%d words" .WordCount))) }} {{- end }} -{{- if (.Param "ShowAuthor") -}} +{{- if not (.Param "hideAuthor") -}} {{- with (partial "author.html" .) }} {{- $scratch.Add "meta" (slice .) }} {{- end }}