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:
@@ -19,8 +19,8 @@ export default defineNuxtConfig({
|
||||
},
|
||||
app: {
|
||||
head: {
|
||||
titleTemplate: "%s - 永平中学校友会",
|
||||
title: "永平中学校友会",
|
||||
titleTemplate: "%s | 永中校友会",
|
||||
title: "永中校友圈",
|
||||
script: [
|
||||
{
|
||||
src: "/analytics.js",
|
||||
|
||||
Reference in New Issue
Block a user