commit d88bd60cb5a260863c7040e1c118d1d9e6be50e6
parent 9f75e85e0679cab7be5548120f026a086638faeb
Author: oscarbenedito <oscar@oscarbenedito.com>
Date:   Sat, 11 Apr 2020 23:07:07 +0200

Changed Atom IDs to tag: URI

Diffstat:
Mconfig.toml | 1+
Mlayouts/_default/rss.xml | 6+++---
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/config.toml b/config.toml @@ -10,6 +10,7 @@ disableKinds = "taxonomyTerm" email = "oscar@oscarbenedito.com" [params] + domain = "oscarbenedito.com" blog_title = "Personal blog" active_years = ["2020", "2019"] diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml @@ -14,9 +14,9 @@ <feed xmlns="http://www.w3.org/2005/Atom"> <title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }}</title> <link href="{{ .Permalink }}index.xml" rel="self"/> - <link href="{{ $.Site.BaseURL }}"/>{{ if not .Date.IsZero }} + <link href="{{ .Permalink }}" rel="alternate"/>{{ if not .Date.IsZero }} <updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>{{ end }} - <id>{{ $.Site.BaseURL }}</id>{{ with $.Site.Author.name }} + <id>tag:{{ $.Site.Params.domain }},{{ .RelPermalink }}</id>{{ with $.Site.Author.name }} <author> <name>{{ . }}</name>{{ with $.Site.Author.email }} <email>{{ . }}</email>{{ end }} @@ -25,7 +25,7 @@ <entry> <title>{{ .Title }}</title> <link href="{{ .Permalink }}"/> - <id>{{ .Permalink }}</id>{{ with $.Site.Author.name }} + <id>tag:{{ $.Site.Params.domain }},{{ .Date.Format "2006-01-02" | safeHTML }}:{{ .RelPermalink }}</id>{{ with $.Site.Author.name }} <author> <name>{{ . }}</name>{{ with $.Site.Author.email }} <email>{{ . }}</email>{{ end }}