6
0
Fork 0
This repository has been archived on 2024-10-15. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity_website_archive/themes/nluug/layouts/index.xml

33 lines
1.4 KiB
XML
Raw Permalink Normal View History

<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
{{- $author := or (.Site.Params.author) (.Site.Author.name) -}}
{{- $language := or (.Site.LanguageCode) (.Site.Language.Lang) -}}
<title>{{ .Site.Title }}</title>
<description>{{ .Site.Params.description }}</description>
<link>{{ absURL "" }}</link>
<language>{{ $language | default "en" }}</language>
<copyright>Copyright {{ now.Format "2006"}}, {{ $author }}</copyright>
<lastBuildDate>{{ .Site.LastChange.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>
{{ with .Site.Params.webmaster }}
<webMaster>{{ . }}</webMaster>
{{ end }}
<docs>http://cyber.harvard.edu/rss/rss.html</docs>
<atom:link href="{{ absURL "atom.xml" }}" rel="self" type="application/atom+xml"/>
{{ range where .Site.RegularPages "Type" "posts" }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<description>{{ .Content | plainify }}</description>
{{- if .Params.Author -}}
{{- $author := index .Site.Data.authors .Params.author -}}
<author>{{ $author.email }} ({{ $author.name }})</author>
{{- else -}}
<author>website@nluug.nl (NLUUG)</author>
{{- end -}}
<guid>{{ .Permalink }}</guid>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
</item>
{{ end }}
</channel>
</rss>