Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
1.4 KiB
XML
Raw Permalink Normal View History

2023-03-24 10:33:53 -07:00
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
{{ $allResources := .Data.Pages }}
{{/* Assume all resources that aren't AI Answers are events. */}}
{{ $events := where $allResources "Type" "not in" "ai-answers" }}
2023-03-24 10:33:53 -07:00
<rss version="2.0">
<channel>
<title>Pulumi Events</title>
<link>{{ .Site.Params.canonicalURL }}{{ .RelPermalink }}</link>
<description>Feed containing upcoming Pulumi events.</description>
<language>{{ .Site.LanguageCode }}</language>
<pubDate>{{ now | time.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ range sort $events }}
2023-03-24 10:33:53 -07:00
<item>
{{ $eventLink := printf "%s%s" .Site.Params.canonicalURL .RelPermalink }}
<!--
When the workshop is external, the `url_slug` property is set to the external link
in the workshop template.
-->
{{ if .Params.external }}
{{ $eventLink = .Params.url_slug }}
{{ end }}
<guid>{{ $eventLink }}</guid>
<title>{{ .Params.title }}</title>
<description>{{ .Params.meta_desc }}</description>
<pubDate>{{ .Params.main.sortable_date }}</pubDate>
<link>{{ $eventLink }}</link>
2023-03-24 10:33:53 -07:00
</item>
{{ end }}
</channel>
</rss>