Skip to content

Commit

Permalink
Add feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowRZ committed Feb 1, 2024
1 parent 977662b commit a526a56
Show file tree
Hide file tree
Showing 3 changed files with 133 additions and 3 deletions.
30 changes: 27 additions & 3 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,39 @@ export default defineNuxtConfig({
strict: true,
},
devtools: { enabled: true },
modules: [
'@nuxt/image'
],
modules: ['@nuxt/image', "nuxt-feedme"],
colorMode: {
classSuffix: ''
},
nitro: {
prerender: {
autoSubfolderIndex: false // XXX
}
},
feedme: {
feeds: {
'/feed.xml': { revisit: '6h', type: 'atom1' },
'/feed.json': { revisit: '6h', type: 'json1', content: true },
},
content: {
feed: {
defaults: {
id: 'https://shadowrz.github.io/blog/',
title: '@ShadowRZ\'s Blog',
description: 'Where something happens.',
link: 'https://shadowrz.github.io/blog/'
},
},
item: {
query: {
path: '/posts',
sort: [ { date: -1 }],
where: [ { _partial: false }, { layout: { $ne: 'listing' }} ]
},
mapping: [
['link', '_path']
],
}
}
}
})
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"@unocss/nuxt": "^0.58.3",
"@vueuse/nuxt": "^10.7.2",
"nuxt": "^3.9.3",
"nuxt-feedme": "^1.0.0",
"nuxt-icon": "^0.6.8",
"remark-reading-time": "^2.0.1",
"typescript": "^5.3.3",
"vue-tsc": "^1.8.27"
}
Expand Down
104 changes: 104 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit a526a56

Please sign in to comment.