Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RSS feed for blog #276

Merged
merged 1 commit into from
Mar 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add RSS feed for blog
  • Loading branch information
rgwood committed Mar 11, 2022
commit 801c100c095d1031adee622e210a88394146d21f
10 changes: 10 additions & 0 deletions .vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,16 @@ module.exports = {
plugins: [
"@vuepress/plugin-back-to-top",
"@vuepress/plugin-medium-zoom",
["feed", {
canonical_base: "https://www.nushell.sh/",
feed_options: {
title: "Nushell Blog",
link: "https://www.nushell.sh/blog",
favicon: "https://www.nushell.sh/icon.png"
},
posts_directories: ['/blog/'],
sort: entries => entries.sort((a, b) => new Date(b.date) - new Date(a.date))
}],
["@vuepress/search", {
test: `^(?!.*old_book)` // Exclude the old Nu book from search; it clutters up search results
}]
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
},
"license": "MIT",
"devDependencies": {
"vuepress": "^1.9.0",
"@vuepress/plugin-back-to-top": "^1.9.0",
"@vuepress/plugin-medium-zoom": "^1.9.0"
"@vuepress/plugin-medium-zoom": "^1.9.0",
"vuepress": "^1.9.0",
"vuepress-plugin-feed": "^0.1.9"
}
}