mirror of https://github.com/onweru/compose.git

Guillaume
15.09.2023 3fc585d53a0a850c31ab797ddfc4986758957098
relLangURL => absLangURL
1 files modified
4 ■■■■ changed files
layouts/partials/nav.html 4 ●●●● patch | view | raw | blame | history
layouts/partials/nav.html
@@ -1,7 +1,7 @@
{{- $s := .Site }}
{{- $sp := $s.Params }}
<nav class="wrap nav menu">
    <a href='{{ relLangURL "" }}' class="nav_brand">
    <a href='{{ absLangURL "" }}' class="nav_brand">
        {{- $logos := $sp.logo }}
        {{- $litPath := absURL ($logos.lightMode) }}
        {{- $darkPath := absURL ($logos.darkMode) }}
@@ -23,7 +23,7 @@
            {{- with .Page }}
            {{- $active = or $active ( $.IsDescendant .)  }}
            {{- end }}
            {{- $url := relLangURL .URL }}
            {{- $url := absLangURL .URL }}
            {{- if or (hasPrefix .URL "http") (hasPrefix .URL "www.") }}
                {{- $url = .URL }}
            {{- end }}