Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add custom menu item param to set url function (#601)
  • Loading branch information
0rzech committed Nov 2, 2021
1 parent ee806a6 commit 427f124
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion layouts/partials/header.html
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Expand Up @@ -3,7 +3,7 @@ publish = "exampleSite/public"
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]
Expand Down
2 changes: 1 addition & 1 deletion theme.toml
Expand Up @@ -20,7 +20,7 @@ features = [
"single-column",
"syntax-highlighting"
]
min_version = "0.77.0"
min_version = "0.79.0"

[author]
name = "Luiz F. A. de Prá"
Expand Down

0 comments on commit 427f124

Please sign in to comment.