Modify RSS XML

Signed-off-by: Craig Box <craig.box@gmail.com>
pull/44455/head
Craig Box 2023-12-21 14:05:50 +13:00
parent 937f2c858e
commit 6ebcdd1f3d
1 changed files with 5 additions and 5 deletions

View File

@ -1,8 +1,8 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.Title }} {{ .Title }}</title>
<title>{{ site.Title }} Blog</title>
<link>{{ .Permalink }}</link>
<description>The Kubernetes project blog</description>
<description>The Kubernetes blog is used by the project to communicate new features, community reports, and any news that might be relevant to the Kubernetes community.</description>
<generator>Hugo -- gohugo.io</generator>{{ with site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with site.Author.email }}
<managingEditor>{{.}}{{ with site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with site.Author.email }}
@ -11,7 +11,7 @@
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
<image>
<url>https://raw.githubusercontent.com/kubernetes/kubernetes/master/logo/logo.png</url>
<title>Kubernetes.io</title>
<title>The Kubernetes project logo</title>
<link>{{ .Permalink }}</link>
</image>
{{ with .OutputFormats.Get "RSS" }}
@ -19,7 +19,7 @@
{{ end }}
{{ range first 50 (where site.RegularPages "Type" "in" (slice "blog")) }}
<item>
<title>{{ .Section | title }}: {{ .Title }}</title>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with site.Author.email }}<author>{{.}}{{ with site.Author.name }} ({{.}}){{end}}</author>{{end}}