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

github.com/qqhann/hugo-primer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerry <git@caulfield.me>2020-05-28 17:46:54 +0300
committerGerry <git@caulfield.me>2020-05-28 17:46:54 +0300
commit6be4fb0f0ba1e005ce7420dc006bf4c17928817a (patch)
treecb3ddcbbcdaf1d416c9462f30f2c7cd10011bf51
parentcd1f5abfa7a5dd167db4e5f6c670200f4b8077ea (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.html2
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>