feat(seo): improve SEO and add analytics tracking

This commit introduces several enhancements for SEO and analytics.

- Updates the canonical site URL from `yphsalumni.com` to `yphsalumni.org`.
- Enriches the 'middle-highschool-tuition-class' page with detailed Open Graph (og) meta tags for better social sharing.
- Implements Umami event tracking for the 'Join Us' button on the homepage.
This commit is contained in:
xiaomai
2025-11-01 23:31:45 +08:00
parent 33334a7515
commit 59fc6cb13d
3 changed files with 11 additions and 2 deletions

View File

@@ -79,8 +79,16 @@
<script lang="ts" setup>
useSeoMeta({
title: "致中补班的一封信",
title: "致1956年永中中补班 — 永平中学校友会",
ogTitle: "致中补班的一封信",
ogDescription:
"致亲爱的1956年两班老校友虽迟六十余年愿这条讯息穿越时间召集大家重聚共叙曾经校园情怀与夕阳红岁月。",
ogUrl: "https://yphsalumni.org/about/middle-highschool-tuition-class/",
ogType: "article",
ogImage: "/about/中补班乙.jpg",
ogImageAlt: "永平学校中辅乙同学合影",
articlePublishedTime: "2022-04-15T00:00:00+08:00",
author: "永平中学校友会",
});
const imagePopup = ref<boolean>(false);

View File

@@ -39,6 +39,7 @@ const heroCta = ref([
label: "立即加入我们",
to: "/join-us",
icon: "mdi:account-plus",
"data-umami-event": "Join Us Btn Click",
},
]);

View File

@@ -68,7 +68,7 @@ export default defineNuxtConfig({
},
},
site: {
url: "https://yphsalumni.com",
url: "https://yphsalumni.org",
name: "永中校友会 YPHS Alumni",
},
});