www.donaldharper.com/themes/story/layouts/_default/index.xml

22 lines
1.1 KiB
XML

<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ .Site.Title }} </title>
<link>{{ .Permalink }}</link>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<author>{{ .Site.Params.Author }}</author>
<rights>Copyright (c) {{ .Site.LastChange.Year }}</rights>
<updated>{{ .Date }}</updated>
{{ range where (where (where .Data.Pages "Section" "ne" "slides") ".Params.skip" "ne" "true") ".Date.Unix" "<" now.Unix }}
<item>
<title>{{ cond (eq .Site.Params.titlecase true) (.Title | title) (.Title) }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</pubDate>
<author>{{ .Site.Params.Author }}</author>
<guid>{{ .Permalink }}</guid>
<media:content xmlns:media="http://search.yahoo.com/mrss/" url="{{ (absURL (default (default "img/default-header-img.tn-500x500.jpg" .Params.image) .Params.thumbnail)) }}" medium="image" type="image/jpg" width="100" height="100" />
<description>{{ .Content | html }}</description>
</item>
{{ end }}
</channel>
</rss>