Add canonical tag

This commit is contained in:
wearrrrr 2024-07-29 03:44:04 -05:00
parent 14d2f8e956
commit 2365bc19dc
3 changed files with 5 additions and 9 deletions

View file

@ -6,11 +6,15 @@ export default defineConfig({
site: "https://aluu.xyz", site: "https://aluu.xyz",
integrations: [ integrations: [
sitemap({ sitemap({
priority: 0.5,
lastmod: new Date(), lastmod: new Date(),
i18n: { i18n: {
locales: { locales: {
en: "en-US", en: "en-US",
jp: "ja-JP", jp: "ja-JP",
fr: "fr-FR",
ru: "ru-RU",
zh: "zh-CN",
}, },
defaultLocale: "en", defaultLocale: "en",
}, },

View file

@ -40,6 +40,7 @@ const { title, optionalPreloads } = Astro.props;
<meta property="twitter:description" content="Alu is a sleek web proxy supporting multiple standards of communication, and wide levels of customization." /> <meta property="twitter:description" content="Alu is a sleek web proxy supporting multiple standards of communication, and wide levels of customization." />
<meta property="twitter:image" content="/logo.png" /> <meta property="twitter:image" content="/logo.png" />
<link rel="sitemap" href="/sitemap-index.xml" /> <link rel="sitemap" href="/sitemap-index.xml" />
<linK rel="canonical" href={Astro.url.href}>
{ {
optionalPreloads?.map((item) => { optionalPreloads?.map((item) => {
return <link rel="preload" href={item.href} as={item.as} />; return <link rel="preload" href={item.href} as={item.as} />;

9
src/types.d.ts vendored
View file

@ -13,15 +13,6 @@ interface Window {
wispData: WispData[]; wispData: WispData[];
} }
declare global {
interface Global {
AluStore: AluStore;
}
// Add the property to globalThis
let AluStore: AluStore;
}
type ExtType = "serviceWorker" | "theme" | "page"; type ExtType = "serviceWorker" | "theme" | "page";
type Extension = { type Extension = {