mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2026-10-28 12:01:26 +01:00
Only show vertical bar if necessary in post-meta (#193)
fixes unnecessary "|" shown when post-meta is empty but translations are available
This commit is contained in:
1 parent
24afe952b2
commit
b6842db0a5
1 file changed
+2
-1
@@ -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 }}
|
||||
|
||||
Reference in new issue
Block a user