From 427f124aedd72b1f4028e1fe3ed58f77f8af17db Mon Sep 17 00:00:00 2001
From: Piotr Orzechowski <piotr@orzechowski.tech>
Date: Tue, 02 Nov 2021 17:33:24 +0000
Subject: [PATCH] Add custom menu item param to set url function (#601)

---
 theme.toml                   |    2 +-
 layouts/partials/header.html |    2 +-
 netlify.toml                 |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 4b7924e..76bddec 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -12,7 +12,7 @@
         {{ with .Site.Menus.main}}
           {{ range sort . }}
             <li class="navigation-item">
-              <a class="navigation-link" href="{{ .URL | relLangURL }}">{{ .Name }}</a>
+              <a class="navigation-link" href="{{ index (apply (slice .URL) (.Params.urlFunc | default "relLangURL") ".") 0 }}">{{ .Name }}</a>
             </li>
           {{ end }}
         {{ end }}
diff --git a/netlify.toml b/netlify.toml
index b52bc33..11c1739 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -3,7 +3,7 @@
 command = "cd exampleSite && hugo --themesDir=../.. --baseURL $URL"
 
 [build.environment]
-HUGO_VERSION = "0.77.0"
+HUGO_VERSION = "0.79.1"
 HUGO_THEME = "repo"
 
 [context.deploy-preview]
diff --git a/theme.toml b/theme.toml
index 42f573e..480884d 100644
--- a/theme.toml
+++ b/theme.toml
@@ -20,7 +20,7 @@
   "single-column",
   "syntax-highlighting"
 ]
-min_version = "0.77.0"
+min_version = "0.79.0"
 
 [author]
 name = "Luiz F. A. de PrĂ¡"

--
Gitblit v1.10.0