Skip to content

Commit 2235cac

Browse files
committed
fix: rss file path
feat: new rss introduction page
1 parent 362f948 commit 2235cac

File tree

5 files changed

+21
-6
lines changed

5 files changed

+21
-6
lines changed

content/learn/index.smd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
.alternatives = [{
77
.name = "rss",
88
.layout = "rss.xml",
9-
.output = "/learn/index.xml",
9+
.output = "index.xml",
1010
}],
1111
.draft = false,
1212
---

content/monthly/index.smd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
.alternatives = [{
88
.name = "rss",
99
.layout = "rss.xml",
10-
.output = "/monthly/index.xml",
10+
.output = "index.xml",
1111
}],
1212
.custom = {
1313
.showTocDate = false

content/post/index.smd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
.alternatives = [{
77
.name = "rss",
88
.layout = "rss.xml",
9-
.output = "/post/index.xml",
9+
.output = "index.xml",
1010
}],
1111
.draft = false,
1212
---
1313

1414
欢迎大家向我们投稿,会同步到微信公众号,投稿方式见[这里](./2023-09-05-hello-world)。
1515

16-
[社区新闻](./news)
16+
[社区新闻](./news)

content/rss.smd

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
.title = "",
3+
.date = @date("1990-01-01T00:00:00"),
4+
.author = "ZigCC",
5+
.layout = "index.shtml",
6+
.draft = false,
7+
---
8+
9+
本站一共有 3 个 RSS 索引,分别索引了 学习、月刊和博客,便于满足不同读者的需求。
10+
11+
他们的链接分别是:
12+
[/learn/index.xml]($link.page("learn").alternative('rss'))
13+
[/monthly/index.xml]($link.page("monthly").alternative('rss'))
14+
[/post/index.xml]($link.page("post").alternative('rss'))
15+

layouts/templates/base.shtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
<a href="https://github.com/zigcc/zigcc.github.io">Source Code</a>
2828
|
2929
<a href="https://creativecommons.org/licenses/by-nc-nd/4.0/">BY-NC-ND 4.0</a>
30-
<!-- | -->
31-
<!--TODO <a href="/index.xml">RSS</a> --></p>
30+
|
31+
<a href="/rss">RSS</a></p>
3232
</div>
3333
<div>
3434
<a

0 commit comments

Comments
 (0)