From df2835ec9626f8f3f7e5efe82363bb1c58502386 Mon Sep 17 00:00:00 2001 From: xihale Date: Thu, 24 Jul 2025 15:54:23 +0800 Subject: [PATCH 1/3] fix: rss file path feat: new rss introduction page --- content/learn/index.smd | 2 +- content/monthly/index.smd | 2 +- content/post/index.smd | 4 ++-- content/rss.smd | 15 +++++++++++++++ layouts/templates/base.shtml | 4 ++-- 5 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 content/rss.smd diff --git a/content/learn/index.smd b/content/learn/index.smd index c99c3c6..63d37a8 100644 --- a/content/learn/index.smd +++ b/content/learn/index.smd @@ -6,7 +6,7 @@ .alternatives = [{ .name = "rss", .layout = "rss.xml", - .output = "/learn/index.xml", + .output = "index.xml", }], .draft = false, --- diff --git a/content/monthly/index.smd b/content/monthly/index.smd index 49cdcd6..50e3777 100644 --- a/content/monthly/index.smd +++ b/content/monthly/index.smd @@ -7,7 +7,7 @@ .alternatives = [{ .name = "rss", .layout = "rss.xml", - .output = "/monthly/index.xml", + .output = "index.xml", }], .custom = { .showTocDate = false diff --git a/content/post/index.smd b/content/post/index.smd index 18c4c94..374e508 100644 --- a/content/post/index.smd +++ b/content/post/index.smd @@ -6,11 +6,11 @@ .alternatives = [{ .name = "rss", .layout = "rss.xml", - .output = "/post/index.xml", + .output = "index.xml", }], .draft = false, --- 欢迎大家向我们投稿,会同步到微信公众号,投稿方式见[这里](./2023-09-05-hello-world)。 -[社区新闻](./news) \ No newline at end of file +[社区新闻](./news) diff --git a/content/rss.smd b/content/rss.smd new file mode 100644 index 0000000..509cfa5 --- /dev/null +++ b/content/rss.smd @@ -0,0 +1,15 @@ +--- +.title = "", +.date = @date("1990-01-01T00:00:00"), +.author = "ZigCC", +.layout = "index.shtml", +.draft = false, +--- + +本站一共有 3 个 RSS 索引,分别索引了 学习、月刊和博客,便于满足不同读者的需求。 + +他们的链接分别是: +[/learn/index.xml]($link.page("learn").alternative('rss')) +[/monthly/index.xml]($link.page("monthly").alternative('rss')) +[/post/index.xml]($link.page("post").alternative('rss')) + diff --git a/layouts/templates/base.shtml b/layouts/templates/base.shtml index ce1b58d..6723f21 100644 --- a/layouts/templates/base.shtml +++ b/layouts/templates/base.shtml @@ -27,8 +27,8 @@ Source Code | BY-NC-ND 4.0 - -

+ | + RSS

Date: Wed, 30 Jul 2025 22:34:21 +0800 Subject: [PATCH 2/3] fix: rss frontmatters --- content/rss.smd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/rss.smd b/content/rss.smd index 509cfa5..5b6646b 100644 --- a/content/rss.smd +++ b/content/rss.smd @@ -1,6 +1,6 @@ --- -.title = "", -.date = @date("1990-01-01T00:00:00"), +.title = "RSS Feeds Overview", +.date = @date("2025-7-27"), .author = "ZigCC", .layout = "index.shtml", .draft = false, From 8bd7620a4ee89e652f3276bd50d6b7f131f27f27 Mon Sep 17 00:00:00 2001 From: Jiacai Liu Date: Thu, 31 Jul 2025 13:53:28 +0800 Subject: [PATCH 3/3] Update content/rss.smd --- content/rss.smd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/rss.smd b/content/rss.smd index 5b6646b..8a2b11b 100644 --- a/content/rss.smd +++ b/content/rss.smd @@ -9,7 +9,9 @@ 本站一共有 3 个 RSS 索引,分别索引了 学习、月刊和博客,便于满足不同读者的需求。 他们的链接分别是: -[/learn/index.xml]($link.page("learn").alternative('rss')) +- [/learn/index.xml]($link.page("learn").alternative('rss')) +- [/monthly/index.xml]($link.page("monthly").alternative('rss')) +- [/post/index.xml]($link.page("post").alternative('rss')) [/monthly/index.xml]($link.page("monthly").alternative('rss')) [/post/index.xml]($link.page("post").alternative('rss'))