add: extract plain faq
Add Schema Org for FAQ in Flatrate
This commit is contained in:
parent
a86b89dc98
commit
ca3868299c
3 changed files with 25 additions and 7 deletions
|
@ -138,5 +138,21 @@ const flatrate : Service[] =
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
const faq = await queryCollection('faq').path('/snippets/faq/flatrate').first()
|
const { data : faq } = await useAsyncData('faq', () => queryCollection('faq').path('/snippets/faq/flatrate').first())
|
||||||
|
const texts = usePlainFaq(faq.value?.body.value)
|
||||||
|
|
||||||
|
if (faq) {
|
||||||
|
useSchemaOrg({
|
||||||
|
'@context': 'https://schema.org',
|
||||||
|
'@type': 'FAQPage',
|
||||||
|
'mainEntity': texts.map(entity => ({
|
||||||
|
'@type': 'Question',
|
||||||
|
'name': entity.question,
|
||||||
|
'acceptedAnswer': {
|
||||||
|
'@type': 'Answer',
|
||||||
|
'text': entity.answer,
|
||||||
|
},
|
||||||
|
}))
|
||||||
|
})
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -18,12 +18,12 @@ export const socials = [
|
||||||
name: '@webfussel.de',
|
name: '@webfussel.de',
|
||||||
'aria-label': 'Externer Link: Bluesky Profil'
|
'aria-label': 'Externer Link: Bluesky Profil'
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
href: 'https://twitch.tv/webfussel',
|
// href: 'https://twitch.tv/webfussel',
|
||||||
icon: 'ph:twitch-logo-duotone',
|
// icon: 'ph:twitch-logo-duotone',
|
||||||
name: 'webfussel',
|
// name: 'webfussel',
|
||||||
'aria-label': 'Externer Link: Twitch Kanal'
|
// 'aria-label': 'Externer Link: Twitch Kanal'
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
href: 'https://ko-fi.com/webfussel',
|
href: 'https://ko-fi.com/webfussel',
|
||||||
icon: 'wf:kofi',
|
icon: 'wf:kofi',
|
||||||
|
|
|
@ -62,4 +62,6 @@ title: "Ich hab ein cooles Projekt! Aber kein Geld …"
|
||||||
Tja.
|
Tja.
|
||||||
|
|
||||||
Ne, awas. Meld dich einfach trotzdem über meine E-Mail-Adresse und vielleicht finden wir eine Lösung.
|
Ne, awas. Meld dich einfach trotzdem über meine E-Mail-Adresse und vielleicht finden wir eine Lösung.
|
||||||
|
|
||||||
|
Du findest weitere Kontaktmöglichkeiten auf meiner [Kontakt-Seite <IconLinkInternal />](contact/){class="text inline-flex-row"}.
|
||||||
::
|
::
|
Loading…
Add table
Add a link
Reference in a new issue