Uses correct URL accessor and removes use of deprecated .URL

This commit is contained in:
Josh Johnson 2019-08-30 21:43:07 -04:00
parent a8a2b05461
commit e15be0e410
No known key found for this signature in database
GPG key ID: 93E0C66B0988E48B
3 changed files with 4 additions and 4 deletions

View file

@ -7,9 +7,9 @@
<ul>
{{ range .Site.Menus.main }}
<li>
<a href="{{.URL}}">{{ .Name }}</a>
<a href="{{.Permalink}}">{{ .Name }}</a>
{{ if in ($.Scratch.Get "sections") .Name }}
<a href="{{.URL}}index.xml"><img src="/img/rss.svg" class="rss-icon" /></a>
<a href="{{.Permalink}}index.xml"><img src="/img/rss.svg" class="rss-icon" /></a>
{{ end }}
</li>
{{ end }}