Sort languages alphabetically and improve style for active language. Fixes #181
parent
17fed92aa1
commit
6a8cc5c906
|
@ -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>
|
||||||
|
|
|
@ -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: "› ";
|
||||||
|
|
Loading…
Reference in New Issue