Update preview images
This commit is contained in:
8
src/components/layout/PageThumbnail.svelte
Normal file
8
src/components/layout/PageThumbnail.svelte
Normal file
@@ -0,0 +1,8 @@
|
||||
<script>
|
||||
let { thumbnail = '' } = $props();
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<meta property="og:image" content={thumbnail} />
|
||||
<meta property="twitter:image" content={thumbnail} />
|
||||
</svelte:head>
|
||||
@@ -4,9 +4,6 @@
|
||||
description = 'Meet the student council, get access to academic and technical resources, registration for events, and much more!',
|
||||
canonical = 'https://ecsess.mcgilleus.ca'
|
||||
} = $props();
|
||||
|
||||
let thumbnail =
|
||||
'https://cdn.sanity.io/images/vmtsvpe2/production/5d68504038cc692805dc5e51af83adedfefde442-5304x3443.jpg?h=628&fm=webp';
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
@@ -22,12 +19,10 @@
|
||||
<meta property="og:url" content={canonical} />
|
||||
<meta property="og:title" content={title} />
|
||||
<meta property="og:description" content={description} />
|
||||
<meta property="og:image" content={thumbnail} />
|
||||
|
||||
<!-- X (Twitter) -->
|
||||
<meta property="twitter:card" content="summary_large_image" />
|
||||
<meta property="twitter:url" content={canonical} />
|
||||
<meta property="twitter:title" content={title} />
|
||||
<meta property="twitter:description" content={description} />
|
||||
<meta property="twitter:image" content={thumbnail} />
|
||||
</svelte:head>
|
||||
|
||||
Reference in New Issue
Block a user