mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
Fix home link when base URL has some path
This commit is contained in:
parent
52932bee67
commit
757d2f06dc
3 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-top: -2px;
|
margin-top: -2px;
|
||||||
"
|
"
|
||||||
href='{{ (cond (and (ne .Site.Params.landingPageURL nil) (.Site.IsMultiLingual)) .Site.Params.landingPageURL "/") }}'>
|
href="{{ .Site.Params.landingPageURL | default "/" | relLangURL }}">
|
||||||
<svg
|
<svg
|
||||||
style="
|
style="
|
||||||
height: 65px;
|
height: 65px;
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-top: -2px;
|
margin-top: -2px;
|
||||||
"
|
"
|
||||||
href='{{ (cond (and (ne .Site.Params.landingPageURL nil) (.Site.IsMultiLingual)) .Site.Params.landingPageURL "/") }}'>
|
href="{{ .Site.Params.landingPageURL | default "/" | relLangURL }}">
|
||||||
<svg
|
<svg
|
||||||
style="
|
style="
|
||||||
height: 65px;
|
height: 65px;
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<section id="homelinks">
|
<section id="homelinks">
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<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>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Reference in a new issue