From 2365bc19dca89dafb53c7f39e53757b65f94b1f0 Mon Sep 17 00:00:00 2001 From: wearrrrr Date: Mon, 29 Jul 2024 03:44:04 -0500 Subject: [PATCH] Add canonical tag --- astro.config.mjs | 4 ++++ src/layouts/Layout.astro | 1 + src/types.d.ts | 9 --------- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 352c92b..2c1c7b6 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -6,11 +6,15 @@ export default defineConfig({ site: "https://aluu.xyz", integrations: [ sitemap({ + priority: 0.5, lastmod: new Date(), i18n: { locales: { en: "en-US", jp: "ja-JP", + fr: "fr-FR", + ru: "ru-RU", + zh: "zh-CN", }, defaultLocale: "en", }, diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 03a1829..aab6b4a 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -40,6 +40,7 @@ const { title, optionalPreloads } = Astro.props; + { optionalPreloads?.map((item) => { return ; diff --git a/src/types.d.ts b/src/types.d.ts index bacab17..9b47278 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -13,15 +13,6 @@ interface Window { wispData: WispData[]; } -declare global { - interface Global { - AluStore: AluStore; - } - - // Add the property to globalThis - let AluStore: AluStore; -} - type ExtType = "serviceWorker" | "theme" | "page"; type Extension = {