Skip to content

Commit

Permalink
Fixing opengraph image urls.
Browse files Browse the repository at this point in the history
  • Loading branch information
corigne committed Aug 9, 2024
1 parent 146a39a commit a0c1c97
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
3 changes: 2 additions & 1 deletion frontend/src/lib/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { dev } from "$app/environment";

export const title = "njodoin::devlog";
export const description = "devlog and resume site made with SvelteKit";
export const description = "Nathan Jodoin's dev blog (and other stuff)";
export const url = dev ? "http://localhost:5173" : "https://jodoin.io";
export const domain = 'jodoin.io'
18 changes: 9 additions & 9 deletions frontend/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ import * as config from '../lib/config'
<title>{config.title}</title>
<meta name="description" content={config.description}/>

<meta property="og:url" content="https://jodoin.io">
<meta property="og:url" content={config.url}>
<meta property="og:type" content="website">
<meta property="og:title" content="njodoin::devlog">
<meta property="og:description" content="devlog and resume site made with SvelteKit">
<meta property="og:image" content="og-image.png">
<meta property="og:title" content={config.title}>
<meta property="og:description" content={config.description}>
<meta property="og:image" content={config.url + '/og-image.png'}>

<meta name="twitter:card" content="summary_large_image">
<meta property="twitter:domain" content="jodoin.io">
<meta property="twitter:url" content="https://jodoin.io">
<meta name="twitter:title" content="njodoin::devlog">
<meta name="twitter:description" content="devlog and resume site made with SvelteKit">
<meta name="twitter:image" content="og-twitter">
<meta property="twitter:domain" content={config.domain}>
<meta property="twitter:url" content={config.url}>
<meta name="twitter:title" content={config.title}>
<meta name="twitter:description" content={config.description}>
<meta name="twitter:image" content={config.url + '/og-image.png'}>

<link rel="alternate" type="application/rss+xml" title="Subscribe to the jodoin.io RSS Feed!" href={`${config.url}/rss.xml`} />

Expand Down

0 comments on commit a0c1c97

Please sign in to comment.