diff options
author | Gerry <git@caulfield.me> | 2020-05-28 17:46:54 +0300 |
---|---|---|
committer | Gerry <git@caulfield.me> | 2020-05-28 17:46:54 +0300 |
commit | 6be4fb0f0ba1e005ce7420dc006bf4c17928817a (patch) | |
tree | cb3ddcbbcdaf1d416c9462f30f2c7cd10011bf51 | |
parent | cd1f5abfa7a5dd167db4e5f6c670200f4b8077ea (diff) |
Fix invalid variable in child menu
There is no `.RelPermalink` available for the menu:
https://gohugo.io/variables/menus/
Instead we need to use `.URL`
-rw-r--r-- | layouts/partials/header.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 0c69ab3..cd69ed9 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -14,7 +14,7 @@ <div class="Box Box--condensed position-absolute dropdown-content "> {{ range .Children }} <div class="Box-body" style=""> - <a href="{{ .RelPermalink }}"> + <a href="{{ .URL }}"> {{ .Name }} </a> </div> |