Skip to content

Commit 9927267

Browse files
authored
feat: add rss (#69)
1 parent 2354657 commit 9927267

File tree

5 files changed

+21
-1
lines changed

5 files changed

+21
-1
lines changed

content/learn/index.smd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
.date = @date("2024-01-01T00:00:00"),
44
.author = "Karl Seguin; ZigCC",
55
.layout = "learn.shtml",
6+
.alternatives = [{
7+
.name = "rss",
8+
.layout = "rss.xml",
9+
.output = "/learn/index.xml",
10+
}],
611
.draft = false,
712
---
813

content/monthly/index.smd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
.author = "ZigCC",
55
.layout = "monthly.shtml",
66
.draft = false,
7+
.alternatives = [{
8+
.name = "rss",
9+
.layout = "rss.xml",
10+
.output = "/monthly/index.xml",
11+
}],
712
.custom = {
813
.showTocDate = false
914
}

content/post/index.smd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
.date = @date("2024"),
44
.author = "ZigCC",
55
.layout = "post.shtml",
6+
.alternatives = [{
7+
.name = "rss",
8+
.layout = "rss.xml",
9+
.output = "/post/index.xml",
10+
}],
611
.draft = false,
712
---
813

content/post/news/index.smd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
.date = @date("2024-08-03T16:43:51+0800"),
44
.author = "ZigCC",
55
.layout = "post.shtml",
6+
.alternatives = [{
7+
.name = "rss",
8+
.layout = "rss.xml",
9+
.output = "/post/news/index.xml",
10+
}],
611
.draft = false,
712
---
813

layouts/post.xml renamed to layouts/rss.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<channel>
33
<title :text="$site.title"></title>
44
<link :text="$site.host_url"></link>
5-
<description :text="$site.title.suffix(' - Blog')"></description>
5+
<description :text="$site.title"></description>
66
<generator>Zine -- https://zine-ssg.io</generator>
77
<language>en-US</language>
88
<lastBuildDate :text="$build.generated.formatHTTP()"></lastBuildDate>

0 commit comments

Comments
 (0)