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:
parent
24afe952b2
commit
b6842db0a5
@ -12,7 +12,8 @@
|
|||||||
{{- if not (.Param "hideMeta") }}
|
{{- if not (.Param "hideMeta") }}
|
||||||
<div class="post-meta">
|
<div class="post-meta">
|
||||||
{{- partial "post_meta.html" . -}}
|
{{- 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">
|
<ul class="i18n_list">
|
||||||
{{- i18n "translations" | default "Translations"}}:
|
{{- i18n "translations" | default "Translations"}}:
|
||||||
{{- range .Translations }}
|
{{- range .Translations }}
|
||||||
|
Loading…
Reference in New Issue
Block a user