Files
classroomio/apps/classroomio-com/src/routes/+layout.ts
T

51 lines
1.7 KiB
TypeScript
Raw Normal View History

2024-08-25 21:35:59 +01:00
import type { MetaTagsProps } from 'svelte-meta-tags';
2024-02-02 08:18:26 +01:00
export const prerender = true;
export function load({ url }) {
return {
2024-08-25 21:35:59 +01:00
baseMetaTags: getBaseMetaTags(url),
2024-02-02 08:18:26 +01:00
url: url.pathname
};
}
2024-08-25 21:35:59 +01:00
function getBaseMetaTags(url: URL) {
const metatags = Object.freeze({
title: 'ClassroomIO – Launch Your Online Bootcamp In Minutes',
description:
'Launch your bootcamp quickly and affordably with ClassroomIO, the customizable online teaching platform.',
canonical: new URL(url.pathname, url.origin).href,
openGraph: {
type: 'website',
url: new URL(url.pathname, url.origin).href,
locale: 'en_IE',
title: 'ClassroomIO – Launch Your Online Bootcamp In Minutes',
description:
'Launch your bootcamp quickly and affordably with ClassroomIO, the customizable online teaching platform.',
siteName: 'ClassroomIO',
images: [
{
url: 'https://classroomio.com/classroomio-opengraph-image.png',
alt: 'ClassroomIO OG Image',
width: 1920,
height: 1080,
secureUrl: 'https://classroomio.com/classroomio-opengraph-image.png',
type: 'image/jpeg'
}
]
},
twitter: {
handle: '@classroomio',
site: '@classroomio',
cardType: 'summary_large_image' as const,
title: 'ClassroomIO – Launch Your Online Bootcamp In Minutes',
description:
'Launch your bootcamp quickly and affordably with ClassroomIO, the customizable online teaching platform.',
image: 'https://classroomio.com/classroomio-opengraph-image.png',
imageAlt: 'ClassroomIO OG Image'
}
}) satisfies MetaTagsProps;
return metatags;
}