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:
@@ -79,8 +79,16 @@
|
|||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
useSeoMeta({
|
useSeoMeta({
|
||||||
title: "致中补班的一封信",
|
title: "致:1956年永中中补班 — 永平中学校友会",
|
||||||
ogTitle: "致中补班的一封信",
|
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);
|
const imagePopup = ref<boolean>(false);
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ const heroCta = ref([
|
|||||||
label: "立即加入我们",
|
label: "立即加入我们",
|
||||||
to: "/join-us",
|
to: "/join-us",
|
||||||
icon: "mdi:account-plus",
|
icon: "mdi:account-plus",
|
||||||
|
"data-umami-event": "Join Us Btn Click",
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ export default defineNuxtConfig({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
site: {
|
site: {
|
||||||
url: "https://yphsalumni.com",
|
url: "https://yphsalumni.org",
|
||||||
name: "永中校友会 YPHS Alumni",
|
name: "永中校友会 YPHS Alumni",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user