feat(seo): implement dynamic page titles

This commit enhances SEO and user experience by setting dynamic page titles for detail pages and updating the global title configuration.

- Event, Hall of Fame, and News detail pages now use the specific item's title as the page title.
- The global `titleTemplate` and default `title` in `nuxt.config.ts` have been updated for better branding.
- These changes ensure each page has a unique, descriptive title, which is beneficial for search engine ranking and browser tab clarity.
This commit is contained in:
xiaomai
2025-10-04 11:03:21 +08:00
parent 950dc60891
commit b05faddfc0
6 changed files with 20 additions and 16 deletions

View File

@@ -24,6 +24,10 @@ const { data: n } = await useAsyncData('new-detail', () =>
.path(`/news/${route.params.slug}`)
.first()
)
useHead({
title: n.value?.title
})
</script>
<style></style>