add: more SEO meta
More seometa, better markdown parser
This commit is contained in:
parent
ca3868299c
commit
fa0435efdf
10 changed files with 52 additions and 14 deletions
|
@ -130,7 +130,7 @@ const oneOff : Service[] = [
|
|||
]
|
||||
|
||||
const { data: faq } = await useAsyncData('faq', () => queryCollection('faq').path('/snippets/faq/booking').first())
|
||||
const texts = usePlainFaq(faq.value?.body.value)
|
||||
const texts = generatePlainText<['title']>(faq.value?.body.value)
|
||||
|
||||
if (faq) {
|
||||
useSchemaOrg({
|
||||
|
@ -138,10 +138,10 @@ if (faq) {
|
|||
'@type': 'FAQPage',
|
||||
'mainEntity': texts.map(entity => ({
|
||||
'@type': 'Question',
|
||||
'name': entity.question,
|
||||
'name': entity.meta.title,
|
||||
'acceptedAnswer': {
|
||||
'@type': 'Answer',
|
||||
'text': entity.answer,
|
||||
'text': entity.text,
|
||||
},
|
||||
}))
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue