Fix home link when base URL has some path

This commit is contained in:
Helder Pereira 2021-08-23 23:40:44 +01:00
parent 52932bee67
commit 757d2f06dc
3 changed files with 3 additions and 3 deletions

View file

@ -6,7 +6,7 @@
font-weight: bold;
margin-top: -2px;
"
href='{{ (cond (and (ne .Site.Params.landingPageURL nil) (.Site.IsMultiLingual)) .Site.Params.landingPageURL "/") }}'>
href="{{ .Site.Params.landingPageURL | default "/" | relLangURL }}">
<svg
style="
height: 65px;

View file

@ -6,7 +6,7 @@
font-weight: bold;
margin-top: -2px;
"
href='{{ (cond (and (ne .Site.Params.landingPageURL nil) (.Site.IsMultiLingual)) .Site.Params.landingPageURL "/") }}'>
href="{{ .Site.Params.landingPageURL | default "/" | relLangURL }}">
<svg
style="
height: 65px;

View file

@ -14,7 +14,7 @@
<section id="homelinks">
<ul>
<li>
<a class="padding" href='{{ (cond (and (ne .Site.Params.landingPageURL nil) (.Site.IsMultiLingual)) .Site.Params.landingPageURL "/") }}'>{{ safeHTML (cond (ne .Site.Params.landingPageName nil) .Site.Params.landingPageName "<i class='fas fa-home'></i> Home") }}</a>
<a class="padding" href="{{ .Site.Params.landingPageURL | default "/" | relLangURL }}">{{ .Site.Params.landingPageName | default `<i class="fas fa-home"></i> Home` | safeHTML }}</a>
</li>
</ul>
</section>