Skip to content

Commit 7544770

Browse files
feat: Add hexo-generator-feed to generate Atom feed (#1999)
This commit adds the `hexo-generator-feed` plugin to generate an Atom feed for the blog. The following changes were made: - Added `hexo-generator-feed` to `blog/package.json`. - Configured the feed plugin in `blog/_config.yml` to generate an Atom feed at `atom.xml`. - Updated the theme configuration in `blog/themes/freewill/_config.yml` to point to the new feed. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent 1439c30 commit 7544770

File tree

4 files changed

+201
-1
lines changed

4 files changed

+201
-1
lines changed

‎blog/_config.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,9 @@ deploy:
8282

8383
include:
8484
- .nojekyll
85+
86+
# Feed
87+
feed:
88+
type: atom
89+
path: atom.xml
90+
limit: 20

‎blog/package-lock.json‎

Lines changed: 193 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎blog/package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"hexo-deployer-git": "^4.0.0",
1111
"hexo-generator-archive": "^2.0.0",
1212
"hexo-generator-category": "^2.0.0",
13+
"hexo-generator-feed": "^3.0.0",
1314
"hexo-generator-index": "^4.0.0",
1415
"hexo-generator-tag": "^2.0.0",
1516
"hexo-renderer-ejs": "^2.0.0",

‎blog/themes/freewill/_config.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ widgets:
5757
- recent_posts
5858
- links
5959

60-
rss: true
60+
rss: atom.xml
6161
fancybox: true
6262
favicon: favicon.png
6363
google_analytics:

0 commit comments

Comments
 (0)