diff options
| author | Florian Kohrt <fkohrt@anche.no> | 2021-01-24 13:22:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-24 17:52:45 +0530 |
| commit | b6842db0a5a499446947938ffd1bfbcb7c5debb8 (patch) | |
| tree | be7c92d248ced20b59c31fbb984ecabeb0ac373c | |
| parent | 24afe952b2db311b7d30d309cef9002526fe197a (diff) | |
Only show vertical bar if necessary in post-meta (#193)
fixes unnecessary "|" shown when post-meta is empty but translations are available
| -rw-r--r-- | layouts/_default/single.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 84a322b..3e5a43b 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -12,7 +12,8 @@ {{- if not (.Param "hideMeta") }} <div class="post-meta"> {{- partial "post_meta.html" . -}} - {{- if .IsTranslated -}} | + {{- if .IsTranslated -}} + {{- if or .Params.author $.Site.Params.author $.Site.Params.ShowReadingTime (not .Date.IsZero) }} | {{- end -}} <ul class="i18n_list"> {{- i18n "translations" | default "Translations"}}: {{- range .Translations }} |
