Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GDGToulouse/devfest-theme-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvia <sylvie@gmail.com>2021-09-15 14:17:39 +0300
committerSylvia <sylvie@gmail.com>2021-09-15 14:17:39 +0300
commit577ebf8506b5ee4a4c580132c6363c5bf7865910 (patch)
tree445ba8ac4435a000536b808938b3a41f461860f1
parent4ca9054ca3e6b789e85f65f73eb4c124093497f3 (diff)
Attempt to fix duplicate path component in menu urls. Not sure why relLangURL s not working but since we don't need translations it's not needed for us.
-rw-r--r--layouts/partials/header.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index f92ea45..e17b027 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -25,12 +25,12 @@
{{ .Name }}
</a>
{{ else if (isset .Params "icon") }}
- <a href="{{ .URL | relLangURL }}" class="link-icon" title="{{ .Name }}" aria-label="{{ .Name }}">
+ <a href="{{ .URL }}" class="link-icon" title="{{ .Name }}" aria-label="{{ .Name }}">
<span class="visually-hidden">{{ .Name }}</span>
{{ partial "icon.html" .Params.icon }}
</a>
{{ else }}
- <a href="{{ .URL | relLangURL }}">{{ .Name }}</a>
+ <a href="{{ .URL }}">{{ .Name }}</a>
{{ end }}
</li>
{{ end }}