mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-21 18:11:37 +01:00
post-single : display available translations
in post - meta
This commit is contained in:
parent
ae2436cc5a
commit
5901cac6c4
@ -13,6 +13,15 @@
|
||||
.post-meta {
|
||||
color: var(--secondary);
|
||||
font-size: 14px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.post-meta .i18n_list li {
|
||||
display: inline-flex;
|
||||
list-style: none;
|
||||
margin: auto 3px;
|
||||
box-shadow: 0 1px 0 var(--secondary);
|
||||
}
|
||||
|
||||
.post-content {
|
||||
|
@ -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…
Reference in New Issue
Block a user