Uses correct URL accessor and removes use of deprecated .URL
This commit is contained in:
parent
a8a2b05461
commit
e15be0e410
3 changed files with 4 additions and 4 deletions
|
@ -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 }}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue