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:
2026-05-08 17:07:43 +08:00
parent 25720b21e1
commit 4f25f2b2f8
9 changed files with 79 additions and 0 deletions

View File

@@ -36,6 +36,15 @@ const statusColor = computed(() => booking.value.status === 'confirmed' ? 'succe
const ticketLabel = computed(() => booking.value.ticketLabel || booking.value.ticketType.toUpperCase())
const totalFormatted = computed(() => formatBookingCurrency(booking.value.totalPrice, locale.value))
const receiptPath = computed(() => `/receipt/${booking.value.receiptToken}`)
useSeoMeta({
title: () => `${t('confirm.title')} - ${booking.value.customerName}`,
description: () => t('confirm.description'),
ogTitle: () => `${t('confirm.title')} - ${booking.value.customerName}`,
ogDescription: () => t('confirm.description'),
robots: 'noindex,nofollow'
})
const detailRows = computed(() => {
const rows = [
{