mirror of https://github.com/istio/istio.io.git
55 lines
2.2 KiB
XML
55 lines
2.2 KiB
XML
{{ $home := .Site.BaseURL | printf "%s%s" (os.Getenv "URL") }}
|
|
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
|
<channel>
|
|
<title>Istio Blog and News</title>
|
|
<description>Combined blog and news feed for the Istio service mesh.</description>
|
|
{{ if not .Date.IsZero }}
|
|
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>
|
|
{{ end }}
|
|
<link>{{ $home }}</link>
|
|
<image>
|
|
<title>Istio Blog and News</title>
|
|
<url>{{ $home }}/favicons/android-192x192.png</url>
|
|
<link>{{ $home }}</link>
|
|
</image>
|
|
<category>Service mesh</category>
|
|
|
|
{{ $pages := (where .Site.Pages "Section" "news").ByPublishDate.Reverse }}
|
|
|
|
{{ range $post := $pages }}
|
|
{{ with $post.PublishDate }}
|
|
{{ if not $post.Draft }}
|
|
<item>
|
|
<title>{{ $post.Title }}</title>
|
|
<description>{{ `<![CDATA[` | safeHTML }}{{ $post.Content | safeHTML }}{{ `]]>` | safeHTML }}</description>
|
|
<pubDate>{{ $post.PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
|
<link>{{ $home }}{{ $post.RelPermalink }}</link>
|
|
<guid isPermaLink="true">{{ $home }}{{ $post.RelPermalink }}</guid>
|
|
{{ range $kw := $post.Keywords }}
|
|
<category>{{ $kw }}</category>
|
|
{{ end }}
|
|
</item>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ $pages := (where .Site.Pages "Section" "blog").ByPublishDate.Reverse }}
|
|
|
|
{{ range $post := $pages }}
|
|
{{ if and (not $post.Draft) $post.IsPage }}
|
|
<item>
|
|
<title>{{ $post.Title }}</title>
|
|
<description>{{ `<![CDATA[` | safeHTML }}{{ $post.Content | safeHTML }}{{ `]]>` | safeHTML }}</description>
|
|
<pubDate>{{ $post.PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
|
<link>{{ $home }}{{ $post.RelPermalink }}</link>
|
|
<guid isPermaLink="true">{{ $home }}{{ $post.RelPermalink }}</guid>
|
|
{{ range $kw := $post.Keywords }}
|
|
<category>{{ $kw }}</category>
|
|
{{ end }}
|
|
</item>
|
|
{{ end }}
|
|
{{ end }}
|
|
</channel>
|
|
</rss>
|