Skip to content

Commit 65c4408

Browse files
committed
feat: rss-feed
1 parent d7bb946 commit 65c4408

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

layouts/_default/rss.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{{ "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>" | safeHTML }}
2+
<rss version="2.0">
3+
<channel>
4+
<title>{{ .Site.Title }}</title>
5+
<link>{{ .Site.BaseURL }}</link>
6+
<description>{{ .Site.Params.description }}</description>
7+
{{ range where .Site.RegularPages "Section" "news" }}
8+
<item>
9+
<title>{{ .Title }}</title>
10+
<link>{{ .Permalink }}</link>
11+
<description>{{ .Summary | plainify }}</description>
12+
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</pubDate>
13+
</item>
14+
{{ end }}
15+
</channel>
16+
</rss>

0 commit comments

Comments
 (0)