Sort languages alphabetically and improve style for active language. Fixes #181

lektura
max.mehl 2017-09-26 01:33:38 +02:00
parent 17fed92aa1
commit 6a8cc5c906
No known key found for this signature in database
GPG Key ID: 2704E4AB371E2E92
2 changed files with 3 additions and 2 deletions

View File

@ -7,10 +7,10 @@
<p>{{ .Site.Params.language.description }}:</p> <p>{{ .Site.Params.language.description }}:</p>
<p style="font-size:25px;"><i class="fa fa-globe" aria-hidden="true" style="font-size:1.5em;vertical-align:top;"></i></p> <p style="font-size:25px;"><i class="fa fa-globe" aria-hidden="true" style="font-size:1.5em;vertical-align:top;"></i></p>
<ul> <ul>
{{ range .Translations }} <li>{{ .Site.Params.languageName }}</li>
{{ range sort .Translations ".Lang" "asc" }}
<li><a href="{{ .RelPermalink }}">{{ .Site.Params.languageName }}</a></li> <li><a href="{{ .RelPermalink }}">{{ .Site.Params.languageName }}</a></li>
{{end}} {{end}}
<li><a href="{{ .RelPermalink }}">{{ .Site.Params.languageName }}</a></li>
</ul> </ul>
</div> </div>
</div> </div>

View File

@ -68,6 +68,7 @@ blockquote p {
display: inline-block; display: inline-block;
margin-right: 10px; margin-right: 10px;
line-height: 2em; line-height: 2em;
color: #CCC;
} }
#language li::before { #language li::before {
content: " "; content: " ";