remove lang switcher from reader view #14

This commit is contained in:
Dmitry Kolosov 2021-12-19 14:10:10 +03:00
parent 61f5b5facf
commit e3e9ce62d2
5 changed files with 41 additions and 29 deletions

View file

@ -1,16 +1,18 @@
{{ if .IsTranslated }}
{{ $pageLang := .Page.Lang}}
<ul class="post-translations">
{{ range .AllTranslations }}
{{ if eq .Lang $pageLang }}
<li>
{{ upper .Lang }}
</li>
{{ else }}
<li>
<a href="{{ .Permalink }}">{{ upper .Lang }}</a>
</li>
<span>
<ul class="post-translations">
{{ range .AllTranslations }}
{{ if eq .Lang $pageLang }}
<li>
{{ upper .Lang }}
</li>
{{ else }}
<li>
<a href="{{ .Permalink }}">{{ upper .Lang }}</a>
</li>
{{ end }}
{{ end }}
{{ end }}
</ul>
</ul>
</span>
{{ end }}