diff options
author | Josh Johnson <jnjosh@jnjosh.com> | 2019-08-31 04:43:07 +0300 |
---|---|---|
committer | Josh Johnson <jnjosh@jnjosh.com> | 2019-08-31 04:43:07 +0300 |
commit | e15be0e41037d9d8dc645db0d3e5f0200b8c5e5f (patch) | |
tree | 7a588ea5824b32619fd1d7f9caf1ec227f96b9a3 | |
parent | a8a2b0546162527b7721d11efea1d3e3ec41a627 (diff) |
Uses correct URL accessor and removes use of deprecated .URL
-rw-r--r-- | layouts/partials/page_header.html | 4 | ||||
-rw-r--r-- | layouts/rss.xml | 2 | ||||
-rw-r--r-- | layouts/section/microposts.rss.xml | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/layouts/partials/page_header.html b/layouts/partials/page_header.html index c381950..dcf3429 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="{{.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 }} diff --git a/layouts/rss.xml b/layouts/rss.xml index b607d52..d9ca9b5 100644 --- a/layouts/rss.xml +++ b/layouts/rss.xml @@ -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> diff --git a/layouts/section/microposts.rss.xml b/layouts/section/microposts.rss.xml index 8d495f8..cd5bb69 100644 --- a/layouts/section/microposts.rss.xml +++ b/layouts/section/microposts.rss.xml @@ -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> |