small fixes

This commit is contained in:
teldra 2022-04-04 20:47:14 +02:00
parent f498ce059b
commit 50c0427313
2 changed files with 10 additions and 1 deletions

View File

@ -52,4 +52,13 @@
{{- end -}} {{- end -}}
</div> </div>
{{ end }} {{ end }}
{{ $s := .Site.Params }}
{{ if .Translations }}
<h3>{{ "Languages" }}</h3>
{{ range .Translations }}
{{ if ne .Lang $.Lang }}
<li style="list-style: none;"><a href="{{- .Permalink -}}">{{- i18n .Lang -}}</a></li>
{{ end }}
{{ end }}
{{ end }}
{{ end }} {{ end }}

View File

@ -2,7 +2,7 @@
<section class="sidebar_inner"> <section class="sidebar_inner">
{{ partial "structure/sidebar_submenu" . }} {{ partial "structure/sidebar_submenu" . }}
{{ if .IsHome }} {{ if .IsHome }}
<h4>{{ "Languages" }}</h3> <h3>{{ "Languages" }}</h3>
{{ range .Translations }} {{ range .Translations }}
{{ if ne .Lang $.Lang }} {{ if ne .Lang $.Lang }}
<li style="list-style: none;"><a href="{{- .Permalink -}}">{{- i18n .Lang -}}</a></li> <li style="list-style: none;"><a href="{{- .Permalink -}}">{{- i18n .Lang -}}</a></li>