Skip to content

Commit

Permalink
增加RSS & 打赏
Browse files Browse the repository at this point in the history
  • Loading branch information
phantooom committed May 1, 2024
1 parent eacd3df commit 35229dc
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 17 deletions.
10 changes: 7 additions & 3 deletions _config.next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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站大会员
Expand All @@ -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
Expand Down
19 changes: 18 additions & 1 deletion _config.next.yml.bak
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
22 changes: 22 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 1 addition & 11 deletions themes/next/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
12 changes: 10 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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==
Expand Down Expand Up @@ -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==
Expand Down

0 comments on commit 35229dc

Please sign in to comment.