mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +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;
|
||||
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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue