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 }}

View file

@ -7,7 +7,7 @@
{{ with .Site.LanguageCode }}<language>{{.}}</language>{{end}}
{{ with .Site.Copyright }}<copyright>{{.}}</copyright>{{end}}
{{ if not .Date.IsZero }}<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
<atom:link href="{{.URL}}" rel="self" type="application/rss+xml" />
<atom:link href="{{.Permalink}}" rel="self" type="application/rss+xml" />
{{ range .Site.RegularPages }}
{{ if ne .Type "page" }}
<item>

View file

@ -7,7 +7,7 @@
{{ with .Site.LanguageCode }}<language>{{.}}</language>{{end}}
{{ with .Site.Copyright }}<copyright>{{.}}</copyright>{{end}}
{{ if not .Date.IsZero }}<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
<atom:link href="{{.URL}}" rel="self" type="application/rss+xml" />
<atom:link href="{{.Permalink}}" rel="self" type="application/rss+xml" />
{{ range .Site.RegularPages }}
{{ if ne .Type "page" }}
<item>