List translations on pages

This commit is contained in:
BBaoVanC 2021-10-11 20:50:09 -05:00
parent 0d6aed2b18
commit 47adfd5f7d
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
1 changed files with 9 additions and 0 deletions

View File

@ -20,6 +20,15 @@
{{ end }}
{{ end }}
{{ if .IsTranslated }}
<span class="post-meta-item">
{{ partialCached "icon.html" "globe" "globe" }}
{{ range .Translations }}
<a href="{{ .Permalink }}">{{ .Language }}</a>
{{ end }}
</span>
{{ end }}
{{ if .Site.Params.wordcount }}
<span class="post-meta-item">
{{ partialCached "icon.html" "type" "type" }}