Skip to content

Commit

Permalink
Merge pull request #276 from rgwood/rss
Browse files Browse the repository at this point in the history
Add RSS feed for blog
  • Loading branch information
sophiajt committed Mar 11, 2022
2 parents 667c04b + 801c100 commit ddc37c2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
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"
}
}

0 comments on commit ddc37c2

Please sign in to comment.