add: SEO for articles
SEO and SchemaORg for articles
This commit is contained in:
parent
f1cb4048a4
commit
d6859cdaad
22 changed files with 198 additions and 125 deletions
|
@ -1,8 +1,9 @@
|
|||
import { defineContentConfig, defineCollection, z } from '@nuxt/content'
|
||||
import { asSchemaOrgCollection } from 'nuxt-schema-org/content'
|
||||
|
||||
export default defineContentConfig({
|
||||
collections: {
|
||||
blog: defineCollection({
|
||||
blog: defineCollection(asSchemaOrgCollection({
|
||||
type: 'page',
|
||||
source: 'blog/*.md',
|
||||
schema: z.object({
|
||||
|
@ -10,17 +11,12 @@ export default defineContentConfig({
|
|||
image: z.string(),
|
||||
thumbnail: z.string(),
|
||||
category: z.string(),
|
||||
tags: z.array(z.string()),
|
||||
author: z.object({
|
||||
name: z.string(),
|
||||
image: z.string(),
|
||||
}),
|
||||
excerpt: z.object({
|
||||
type: z.string(),
|
||||
children: z.any(),
|
||||
}),
|
||||
}),
|
||||
}),
|
||||
})),
|
||||
|
||||
skills: defineCollection({
|
||||
type: 'page',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue