Refactor OG image generation in various pages and update package dependencies
This commit is contained in:
@@ -1,10 +1,23 @@
|
||||
import { defineContentConfig, defineCollection } from '@nuxt/content'
|
||||
import { defineCollection, defineContentConfig } from '@nuxt/content'
|
||||
import { asRobotsCollection } from '@nuxtjs/robots/content'
|
||||
import { asSitemapCollection } from '@nuxtjs/sitemap/content'
|
||||
import { asOgImageCollection } from 'nuxt-og-image/content'
|
||||
|
||||
export default defineContentConfig({
|
||||
collections: {
|
||||
content: defineCollection({
|
||||
type: 'page',
|
||||
source: '**/*.md',
|
||||
...asRobotsCollection({
|
||||
type: 'page',
|
||||
source: '**/*.md',
|
||||
}),
|
||||
...asSitemapCollection({
|
||||
type: 'page',
|
||||
source: '**/*.md',
|
||||
}),
|
||||
...asOgImageCollection({
|
||||
type: 'page',
|
||||
source: '**/*.md',
|
||||
}),
|
||||
}),
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user