2023-02-16 00:35:47 +00:00
|
|
|
export const prerender = true;
|
2023-11-08 20:28:18 +00:00
|
|
|
|
|
|
|
|
import type { MetaTagsProps } from 'svelte-meta-tags';
|
2023-11-08 23:30:56 +00:00
|
|
|
import { PUBLIC_SITE_URL } from '$env/static/public';
|
2023-11-08 20:28:18 +00:00
|
|
|
import type { PageLoad } from './$types';
|
|
|
|
|
|
|
|
|
|
export const load: PageLoad = async ({ url }) => {
|
2023-11-08 23:30:56 +00:00
|
|
|
const baseUrl = new URL(url.origin).href || PUBLIC_SITE_URL || 'https://bradleyshellnut.com';
|
|
|
|
|
const currentPageUrl = new URL(url.pathname, url.origin).href;
|
|
|
|
|
|
2023-11-08 20:28:18 +00:00
|
|
|
const metaTags: MetaTagsProps = Object.freeze({
|
|
|
|
|
title: 'Privacy Blog',
|
|
|
|
|
description: 'My thoughts on personal internet privacy.',
|
|
|
|
|
openGraph: {
|
|
|
|
|
title: 'Privacy Blog',
|
|
|
|
|
description: 'My thoughts on personal internet privacy.',
|
2023-11-08 23:30:56 +00:00
|
|
|
url: new URL(url.pathname, url.origin).href,
|
|
|
|
|
siteName: 'Bradley Shellnut Personal Website',
|
|
|
|
|
type: 'website',
|
|
|
|
|
locale: 'en_US',
|
|
|
|
|
images: [
|
|
|
|
|
{
|
2023-12-09 00:08:14 +00:00
|
|
|
url: `${baseUrl}og?header=Privacy Blog | bradleyshellnut.com&page=My thoughts on personal internet privacy.`,
|
2023-12-09 00:02:30 +00:00
|
|
|
alt: 'Bradley Shellnut Privacy Blog',
|
|
|
|
|
width: 1200,
|
|
|
|
|
height: 630
|
2023-11-08 23:30:56 +00:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
twitter: {
|
|
|
|
|
title: 'Privacy Blog',
|
|
|
|
|
description: 'My thoughts on personal internet privacy.',
|
|
|
|
|
card: 'summary_large_image',
|
2023-12-09 00:08:14 +00:00
|
|
|
image: `${baseUrl}og?header=Privacy Blog | bradleyshellnut.com&page=My thoughts on personal internet privacy.`,
|
2023-11-08 23:30:56 +00:00
|
|
|
imageAlt: 'Bradley Shellnut Website Logo'
|
|
|
|
|
},
|
|
|
|
|
url: currentPageUrl
|
2023-11-08 20:28:18 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
metaTagsChild: metaTags
|
|
|
|
|
};
|
|
|
|
|
};
|