Merge pull request #12 from ghlecl/master

Using .URL in menu items instead of .Permalink
This commit is contained in:
Josh Johnson 2019-12-02 15:37:24 -05:00 committed by GitHub
commit 32ef8e0ba6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,9 +7,9 @@
<ul> <ul>
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
<li> <li>
<a href="{{.Permalink}}">{{ .Name }}</a> <a href="{{.URL}}">{{ .Name }}</a>
{{ if in ($.Scratch.Get "sections") .Name }} {{ 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 }} {{ end }}
</li> </li>
{{ end }} {{ end }}