Skip to content

Commit b6842db

Browse files
authored
Only show vertical bar if necessary in post-meta (#193)
fixes unnecessary "|" shown when post-meta is empty but translations are available
1 parent 24afe95 commit b6842db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

layouts/_default/single.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ <h1 class="post-title">
1212
{{- if not (.Param "hideMeta") }}
1313
<div class="post-meta">
1414
{{- partial "post_meta.html" . -}}
15-
{{- if .IsTranslated -}}&nbsp;|&nbsp;
15+
{{- if .IsTranslated -}}
16+
{{- if or .Params.author $.Site.Params.author $.Site.Params.ShowReadingTime (not .Date.IsZero) }}&nbsp;|&nbsp;{{- end -}}
1617
<ul class="i18n_list">
1718
{{- i18n "translations" | default "Translations"}}:
1819
{{- range .Translations }}

0 commit comments

Comments
 (0)