Skip to content

Commit 50e5551

Browse files
committed
social meta
1 parent e6f5153 commit 50e5551

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/routes/+layout.svelte

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,24 @@
33
import social from '$lib/assets/social-image-og.png';
44
import '../styles/style.css';
55
6-
let social_description = "See when the U.S. Census Bureau adds or removes datasets."
7-
let page_title = "Tracking Census Dataset Changes"
6+
const social_description = "See when the U.S. Census Bureau adds or removes datasets.";
7+
const page_title = "Tracking Census Dataset Changes";
8+
const canoncal_url = "https://www.hrecht.com/census-api-datasets/";
89
910
let { children } = $props();
1011
</script>
1112

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

15-
<link rel="canonical" href="https://www.hrecht.com/census-api-datasets/">
16+
<link rel="canonical" href={canoncal_url}>
1617

1718
<meta name="description" content={social_description}>
1819
<meta name="author" content="Hannah Recht">
1920
<meta name="news_keywords" content="census, data, federal government, census api, api">
2021
<meta property="og:title" content={page_title}>
2122
<meta property="og:site_name" content="Hannah Recht">
22-
<meta property="og:url" content="https://www.hrecht.com/census-api-datasets/">
23+
<meta property="og:url" content={canoncal_url}>
2324
<meta property="og:description" content={social_description}>
2425
<meta property="og:type" content="article">
2526
<meta property="og:locale" content="en_US">
@@ -28,7 +29,7 @@
2829
<meta property="og:image:width" content="1200">
2930
<meta property="og:image:height" content="630">
3031
<meta name="twitter:card" content="summary_large_image">
31-
<meta name="twitter:site" content="https://www.hrecht.com/census-api-datasets/">
32+
<meta name="twitter:site" content={canoncal_url}>
3233
<meta name="twitter:creator" content="@hannah_recht">
3334
<meta name="twitter:title" content={page_title}>
3435
<meta name="twitter:description" content={social_description}>

svelte.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
adapter: adapter({
77
pages: 'build',
88
assets: 'build',
9-
fallback: undefined,
9+
fallback: '404.html',
1010
precompress: false,
1111
strict: true
1212
})

0 commit comments

Comments
 (0)