]> git.dujemihanovic.xyz Git - dujemihanovic.xyz.git/blob - layouts/rss.xml
Change introductory sentence
[dujemihanovic.xyz.git] / layouts / rss.xml
1 {{- printf "<?xml version=\"1.0\" encoding=\"utf-8\"?>" | safeHTML }}
2 <feed xmlns="http://www.w3.org/2005/Atom">
3 <title>{{ .Site.Title }}</title>
4 <id>{{ .Permalink }}</id>
5 {{ $lastmod := 0 }}
6 {{ range (.Site.GetPage "/posts").Pages }}
7 {{ if gt .Lastmod $lastmod }}
8 {{ $lastmod = .Lastmod }}
9 {{ end }}
10 {{ end }}
11 <updated>{{ $lastmod.Format "2006-01-02T15:04:05Z" }}</updated>
12 <link href="{{ .Permalink }}"/>
13 <link rel="self" href="{{ (.OutputFormats.Get "RSS").Permalink }}"/>
14 <author>
15 <name>{{ $.Site.Author.name }}</name>
16 <email>{{ $.Site.Author.email }}</email>
17 <uri>{{ .Permalink }}</uri>
18 </author>
19 <generator uri="https://gohugo.io/">Hugo</generator>
20
21 {{ with $.Site.GetPage "posts/" }}
22 {{ range first .Site.Config.Services.RSS.Limit .Pages }}
23 <entry>
24 <id>{{ .Permalink }}</id>
25 <link rel="alternate" href="{{ .RelPermalink }}"/>
26 <title>{{ .Title }}</title>
27 <updated>{{ .Lastmod.Format "2006-01-02T15:04:05Z" }}</updated>
28 <published>{{ .PublishDate.Format "2006-01-02T15:04:05Z" }}</published>
29 <content type="html">{{ .Content | html }}</content>
30 <summary type="html">{{ .Summary | html }}</summary>
31 </entry>
32 {{ end }}
33 {{ end }}
34 </feed>