mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-29 14:05:19 -04:00
post-single : display available translations
in post - meta
This commit is contained in:
parent
ae2436cc5a
commit
5901cac6c4
2 changed files with 19 additions and 0 deletions
|
@ -13,6 +13,16 @@
|
|||
{{ $default_txt := print .ReadingTime " " "min" }}
|
||||
{{ i18n "read_time" .ReadingTime | default $default_txt }}{{ end }}
|
||||
{{ if or .Params.author .Site.Params.author }} . {{ .Params.author | default .Site.Params.author }}{{ end }}
|
||||
{{ if .IsTranslated -}}|
|
||||
<ul class="i18n_list">
|
||||
{{ i18n "translations" | default "Translations"}}:
|
||||
{{ range .Translations }}
|
||||
<li>
|
||||
<a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{end}}
|
||||
</header>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue