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

22 lines
1.2 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 first 20 (where (where (where .Site.RegularPages "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>{{ with .Params.tldr }}{{ . | markdownify | html }}{{ else }}{{ (printf "%s<br>%s" .Params.description .Summary) | markdownify | html }}{{ end }}</description>
</item>
{{ end }}
</channel>
</rss>