From 35229dc045820d354bcd2c61053ea747032dbd96 Mon Sep 17 00:00:00 2001 From: phantooom Date: Wed, 1 May 2024 20:47:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0RSS=20&=20=E6=89=93=E8=B5=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _config.next.yml | 10 +++++++--- _config.next.yml.bak | 19 ++++++++++++++++++- package-lock.json | 22 ++++++++++++++++++++++ package.json | 1 + themes/next/_config.yml | 12 +----------- yarn.lock | 12 ++++++++++-- 6 files changed, 59 insertions(+), 17 deletions(-) diff --git a/_config.next.yml b/_config.next.yml index 4731dd1..dfe1bca 100644 --- a/_config.next.yml +++ b/_config.next.yml @@ -168,6 +168,7 @@ social: #E-Mail: mailto:yourname@gmail.com || fa fa-envelope #Weibo: https://weibo.com/yourname || fab fa-weibo Twitter: https://twitter.com/mdjxyz || fab fa-twitter + RSS: /atom.xml || fa fa-rss #FB Page: https://www.facebook.com/yourname || fab fa-facebook #StackOverflow: https://stackoverflow.com/yourname || fab fa-stack-overflow #YouTube: https://youtube.com/yourname || fab fa-youtube @@ -274,10 +275,13 @@ tag_icon: false # Donate (Sponsor) settings # Front-matter variable (nonsupport animation). +# Donate (Sponsor) settings +# Front-matter variable (unsupport animation). reward_settings: # If true, a donate button will be displayed in every article by default. - enable: false - animation: false + enable: true + animation: true + comment: 谢谢你请我充B站大会员 reward: comment: 谢谢你请我充B站大会员 @@ -294,7 +298,7 @@ follow_me: #Twitter: https://twitter.com/username || fab fa-twitter #Telegram: https://t.me/channel_name || fab fa-telegram #WeChat: /images/wechat_channel.png || fab fa-weixin - #RSS: /atom.xml || fa fa-rss + RSS: /atom.xml || fa fa-rss # Related popular posts # Dependencies: https://github.com/sergeyzwezdin/hexo-related-posts diff --git a/_config.next.yml.bak b/_config.next.yml.bak index 6c942a0..1e04528 100644 --- a/_config.next.yml.bak +++ b/_config.next.yml.bak @@ -56,7 +56,24 @@ favicon: # Leave rss as empty to use site's feed link, and install hexo-generator-feed: `npm install hexo-generator-feed --save`. # Set rss to specific value if you have burned your feed already. rss: - + enable: true + type: atom + # Generate both atom and rss2 feeds + type: + - atom + - rss2 + path: + - atom.xml + - rss2.xml + limit: 20 + hub: + content: + content_limit: 140 + content_limit_delim: ' ' + order_by: -date + icon: icon.png + autodiscovery: true + template: footer: # Specify the date when the site was setup. # If not defined, current year will be used. diff --git a/package-lock.json b/package-lock.json index 7af0340..2f27a1b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,6 +14,7 @@ "hexo-deployer-git": "^4.0.0", "hexo-generator-archive": "^2.0.0", "hexo-generator-category": "^2.0.0", + "hexo-generator-feed": "^3.0.0", "hexo-generator-index": "^3.0.0", "hexo-generator-tag": "^2.0.0", "hexo-next-giscus": "^1.3.0", @@ -2011,6 +2012,18 @@ "node": ">=14" } }, + "node_modules/hexo-generator-feed": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/hexo-generator-feed/-/hexo-generator-feed-3.0.0.tgz", + "integrity": "sha512-Jo35VSRSNeMitS2JmjCq3OHAXXYU4+JIODujHtubdG/NRj2++b3Tgyz9pwTmROx6Yxr2php/hC8og5AGZHh8UQ==", + "dependencies": { + "hexo-util": "^2.1.0", + "nunjucks": "^3.0.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, "node_modules/hexo-generator-index": { "version": "3.0.0", "resolved": "https://registry.npmmirror.com/hexo-generator-index/-/hexo-generator-index-3.0.0.tgz", @@ -6689,6 +6702,15 @@ "hexo-pagination": "3.0.0" } }, + "hexo-generator-feed": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/hexo-generator-feed/-/hexo-generator-feed-3.0.0.tgz", + "integrity": "sha512-Jo35VSRSNeMitS2JmjCq3OHAXXYU4+JIODujHtubdG/NRj2++b3Tgyz9pwTmROx6Yxr2php/hC8og5AGZHh8UQ==", + "requires": { + "hexo-util": "^2.1.0", + "nunjucks": "^3.0.0" + } + }, "hexo-generator-index": { "version": "3.0.0", "resolved": "https://registry.npmmirror.com/hexo-generator-index/-/hexo-generator-index-3.0.0.tgz", diff --git a/package.json b/package.json index 8018489..588a7f2 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "hexo-deployer-git": "^4.0.0", "hexo-generator-archive": "^2.0.0", "hexo-generator-category": "^2.0.0", + "hexo-generator-feed": "^3.0.0", "hexo-generator-index": "^3.0.0", "hexo-generator-tag": "^2.0.0", "hexo-next-giscus": "^1.3.0", diff --git a/themes/next/_config.yml b/themes/next/_config.yml index 3e8c96c..10171c9 100644 --- a/themes/next/_config.yml +++ b/themes/next/_config.yml @@ -263,18 +263,8 @@ symbols_count_time: # Use icon instead of the symbol # to indicate the tag at the bottom of the post tag_icon: false -# Donate (Sponsor) settings -# Front-matter variable (nonsupport animation). -reward_settings: - # If true, a donate button will be displayed in every article by default. - enable: false - animation: false -reward: - #wechatpay: /images/wechatpay.png - #alipay: /images/alipay.png - #paypal: /images/paypal.png - #bitcoin: /images/bitcoin.png + # Subscribe through Telegram Channel, Twitter, etc. # Usage: `Key: permalink || icon` (Font Awesome) diff --git a/yarn.lock b/yarn.lock index 38ef6a1..3df9c33 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1317,6 +1317,14 @@ hexo-generator-category@^2.0.0: dependencies: hexo-pagination "3.0.0" +hexo-generator-feed@^3.0.0: + version "3.0.0" + resolved "https://registry.npmmirror.com/hexo-generator-feed/-/hexo-generator-feed-3.0.0.tgz" + integrity sha512-Jo35VSRSNeMitS2JmjCq3OHAXXYU4+JIODujHtubdG/NRj2++b3Tgyz9pwTmROx6Yxr2php/hC8og5AGZHh8UQ== + dependencies: + hexo-util "^2.1.0" + nunjucks "^3.0.0" + hexo-generator-index@^3.0.0: version "3.0.0" resolved "https://registry.npmmirror.com/hexo-generator-index/-/hexo-generator-index-3.0.0.tgz" @@ -1415,7 +1423,7 @@ hexo-theme-landscape@^1.0.0: resolved "https://registry.npmmirror.com/hexo-theme-landscape/-/hexo-theme-landscape-1.0.0.tgz" integrity sha512-bWQJWMqQI78wWiJPQZq5pJBH20TM442ShCaHGRetuEgMraxH0OKxB3NTupJzNEkzEk8DV2yrdizkXdKN6i501A== -hexo-util@^2.0.0, hexo-util@^2.7.0: +hexo-util@^2.0.0, hexo-util@^2.1.0, hexo-util@^2.7.0: version "2.7.0" resolved "https://registry.npmmirror.com/hexo-util/-/hexo-util-2.7.0.tgz" integrity sha512-hQM3h34nhDg0bSe/Tg1lnpODvNkz7h2u0+lZGzlKL0Oufp+5KCAEUX9wal7/xC7ax3/cwEn8IuoU75kNpZLpJQ== @@ -2144,7 +2152,7 @@ npmlog@^7.0.1: gauge "^5.0.0" set-blocking "^2.0.0" -nunjucks@^3.2.3: +nunjucks@^3.0.0, nunjucks@^3.2.3: version "3.2.3" resolved "https://registry.npmjs.org/nunjucks/-/nunjucks-3.2.3.tgz" integrity sha512-psb6xjLj47+fE76JdZwskvwG4MYsQKXUtMsPh6U0YMvmyjRtKRFcxnlXGWglNybtNTNVmGdp94K62/+NjF5FDQ==