feat(seo): add meta tags and page titles
Configure default head meta and title template in nuxt.config.ts Add dynamic SEO meta tags and robots directives to all pages
This commit is contained in:
@@ -27,6 +27,20 @@ const [bookingConfig, contactsResponse] = await Promise.all([
|
||||
apiClient<{ contacts: PublicContact[] }>('/api/public/contacts')
|
||||
])
|
||||
|
||||
const seoDescription = computed(() => {
|
||||
return `${bookingConfig.event.dateLabel} · ${bookingConfig.event.timeLabel} · ${bookingConfig.event.venue}`
|
||||
})
|
||||
|
||||
useSeoMeta({
|
||||
title: () => bookingConfig.event.title,
|
||||
description: () => seoDescription.value,
|
||||
ogTitle: () => bookingConfig.event.title,
|
||||
ogDescription: () => seoDescription.value,
|
||||
twitterTitle: () => bookingConfig.event.title,
|
||||
twitterDescription: () => seoDescription.value,
|
||||
robots: 'index,follow'
|
||||
})
|
||||
|
||||
const eventDetails = computed(() => [
|
||||
{
|
||||
label: t('common.date'),
|
||||
|
||||
Reference in New Issue
Block a user