Skip to content

Commit 4fe0f48

Browse files
committed
absolute social img path
1 parent e361daa commit 4fe0f48

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/routes/+layout.svelte

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,40 @@
11
<script>
22
//import favicon from '$lib/assets/favicon.svg';
3-
import social from '/assets/social-image-og.png';
3+
//import social from 'assets/social-image-og.png';
44
import '../styles/style.css';
55
66
const social_description = "See when the U.S. Census Bureau adds or removes datasets.";
77
const page_title = "Tracking Census Dataset Changes";
8-
const canoncal_url = "https://www.hrecht.com/census-api-datasets/";
8+
const canonical_url = "https://www.hrecht.com/census-api-datasets/";
9+
const social_image = canonical_url + "assets/social-image-og.png";
910
1011
let { children } = $props();
1112
</script>
1213

1314
<svelte:head>
1415
<!--link rel="icon" href={favicon} /-->
1516

16-
<link rel="canonical" href={canoncal_url}>
17+
<link rel="canonical" href={canonical_url}>
1718

1819
<meta name="description" content={social_description}>
1920
<meta name="author" content="Hannah Recht">
2021
<meta name="news_keywords" content="census, data, federal government, census api, api">
2122
<meta property="og:title" content={page_title}>
2223
<meta property="og:site_name" content="Hannah Recht">
23-
<meta property="og:url" content={canoncal_url}>
24+
<meta property="og:url" content={canonical_url}>
2425
<meta property="og:description" content={social_description}>
2526
<meta property="og:type" content="article">
2627
<meta property="og:locale" content="en_US">
27-
<meta property="og:image" content={social}>
28+
<meta property="og:image" content={social_image}>
2829
<meta property="og:image:type" content="image/png">
2930
<meta property="og:image:width" content="1200">
3031
<meta property="og:image:height" content="630">
3132
<meta name="twitter:card" content="summary_large_image">
32-
<meta name="twitter:site" content={canoncal_url}>
33+
<meta name="twitter:site" content={canonical_url}>
3334
<meta name="twitter:creator" content="@hannah_recht">
3435
<meta name="twitter:title" content={page_title}>
3536
<meta name="twitter:description" content={social_description}>
36-
<meta name="twitter:image:src" content={social}>
37+
<meta name="twitter:image:src" content={social_image}>
3738
<meta name="robots" content="max-image-preview:large">
3839

3940
<title>{page_title}</title>

0 commit comments

Comments
 (0)