From b6842db0a5a499446947938ffd1bfbcb7c5debb8 Mon Sep 17 00:00:00 2001 From: Florian Kohrt Date: Sun, 24 Jan 2021 13:22:45 +0100 Subject: [PATCH] Only show vertical bar if necessary in post-meta (#193) fixes unnecessary "|" shown when post-meta is empty but translations are available --- layouts/_default/single.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 84a322be..3e5a43b3 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -12,7 +12,8 @@ {{- if not (.Param "hideMeta") }}
{{- partial "post_meta.html" . -}} - {{- if .IsTranslated -}} |  + {{- if .IsTranslated -}} + {{- if or .Params.author $.Site.Params.author $.Site.Params.ShowReadingTime (not .Date.IsZero) }} | {{- end -}}