Handling multilingual mode on extra menu shortcuts

This commit is contained in:
matcornic 2017-08-20 17:08:37 +02:00
parent 6b265c5181
commit a64a454421

View file

@ -32,7 +32,7 @@
<ul> <ul>
{{ range sort . "Weight"}} {{ range sort . "Weight"}}
<li class="" role=""> <li class="" role="">
{{.Pre}}<a class="padding" href="{{.URL}}">{{safeHTML .Name}}</a>{{.Post}} {{.Pre}}<a class="padding" href="{{.URL | absLangURL }}">{{safeHTML .Name}}</a>{{.Post}}
</li> </li>
{{end}} {{end}}
</ul> </ul>
@ -43,7 +43,7 @@
<section id="prefooter"> <section id="prefooter">
<hr/> <hr/>
<ul> <ul>
{{ if .Site.IsMultiLingual }} {{ if and .Site.IsMultiLingual (not .Site.Params.DisableLanguageSwitchingButton)}}
<li> <li>
<a class="padding"> <a class="padding">
<i class="fa fa-fw fa-language"></i> <i class="fa fa-fw fa-language"></i>