From 99346eb06d57d851dba4d493fbfb19751fdc78e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E7=BA=B8=E5=BF=98=E5=BF=A7?= Date: Fri, 11 Jul 2025 03:35:21 +0000 Subject: [PATCH 1/2] feat: add support for custom scripts in SEO head --- app/app.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/app.vue b/app/app.vue index ab992eb..875d886 100644 --- a/app/app.vue +++ b/app/app.vue @@ -9,6 +9,8 @@ const { data: files } = useLazyAsyncData('search', () => queryCollectionSearchSe const twitterSite = appConfig.docs.socials?.twitter || appConfig.docs.socials?.x || undefined const browserTabIcon = appConfig.docs?.logo || undefined +const scripts = appConfig.docs?.scripts || [] + useSeoMeta({ twitterSite: twitterSite ? `@${twitterSite}` : undefined, }) @@ -22,6 +24,12 @@ useHead({ ], }) +if (scripts.length > 0) { + useHead({ + script: scripts + }) +} + const route = useRoute() onMounted(() => { From 1894d6fbc741c3b2c1664bf537cc872c586c7f68 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sun, 3 Aug 2025 19:29:11 +0000 Subject: [PATCH 2/2] chore: apply automated updates --- app/app.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/app.vue b/app/app.vue index 875d886..67d179c 100644 --- a/app/app.vue +++ b/app/app.vue @@ -26,7 +26,7 @@ useHead({ if (scripts.length > 0) { useHead({ - script: scripts + script: scripts, }) }