Skip to content

Commit

Permalink
fix: ignore partial nuxt content files
Browse files Browse the repository at this point in the history
Fixes #118
  • Loading branch information
harlan-zw committed Aug 15, 2023
1 parent 69826ba commit c584b61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/plugins/nuxt-content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const NuxtContentSimpleSitemapPlugin: NitroAppPlugin = (nitroApp) => {
const { moduleConfig } = useRuntimeConfig()['nuxt-simple-sitemap'] as any as ModuleRuntimeConfig
const contentStorage = prefixStorage(useStorage(), 'content:source')
nitroApp.hooks.hook('content:file:afterParse', async (content) => {
if (content._extension !== 'md' || content.sitemap === false || content.indexable === false)
if (content._extension !== 'md' || content._partial || content.sitemap === false || content.indexable === false)
return
// add any top level images
let images = []
Expand Down

0 comments on commit c584b61

Please sign in to comment.