diff options
author | Josh Johnson <jnjosh@jnjosh.com> | 2019-12-02 23:37:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-02 23:37:24 +0300 |
commit | 32ef8e0ba6b6b1e3eb13b37637f72d05093f68ce (patch) | |
tree | 13810ae359775e86e46bdefde47aec316d7ad17e | |
parent | e15be0e41037d9d8dc645db0d3e5f0200b8c5e5f (diff) | |
parent | db12d07cb62507aae88e11d63f9ede2302b3e763 (diff) |
Using .URL in menu items instead of .Permalink
-rw-r--r-- | layouts/partials/page_header.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/page_header.html b/layouts/partials/page_header.html index dcf3429..c381950 100644 --- a/layouts/partials/page_header.html +++ b/layouts/partials/page_header.html @@ -7,9 +7,9 @@ <ul> {{ range .Site.Menus.main }} <li> - <a href="{{.Permalink}}">{{ .Name }}</a> + <a href="{{.URL}}">{{ .Name }}</a> {{ if in ($.Scratch.Get "sections") .Name }} - <a href="{{.Permalink}}index.xml"><img src="/img/rss.svg" class="rss-icon" /></a> + <a href="{{.URL}}index.xml"><img src="/img/rss.svg" class="rss-icon" /></a> {{ end }} </li> {{ end }} |