2023-03-24 10:33:53 -07:00
|
|
|
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
|
2023-07-26 10:29:07 -07:00
|
|
|
{{ $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>
|
2023-07-26 10:29:07 -07:00
|
|
|
{{ range sort $events }}
|
2023-03-24 10:33:53 -07:00
|
|
|
<item>
|
2023-05-16 16:54:35 -07:00
|
|
|
{{ $eventLink := printf "%s%s" .Site.Params.canonicalURL .RelPermalink }}
|
2023-05-16 12:24:22 -07:00
|
|
|
<!--
|
|
|
|
When the workshop is external, the `url_slug` property is set to the external link
|
|
|
|
in the workshop template.
|
|
|
|
-->
|
2023-05-16 16:54:35 -07:00
|
|
|
{{ if .Params.external }}
|
|
|
|
{{ $eventLink = .Params.url_slug }}
|
2023-05-16 12:24:22 -07:00
|
|
|
{{ end }}
|
2023-05-16 16:54:35 -07:00
|
|
|
<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>
|