Skip to content

Commit

Permalink
fix: add portfolio og url slug
Browse files Browse the repository at this point in the history
  • Loading branch information
thisjt committed Aug 25, 2024
1 parent 8416f62 commit 7106d76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/routes/portfolio/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</script>

<svelte:head>
<meta property="og:url" content="https://thisjt.me/" />
<meta property="og:url" content="https://thisjt.me/portfolio" />
<meta property="og:image" content="https://thisjt.me/social2.png" />
<meta property="og:title" content="portfolio - thisjt.me personal website" />
<meta
Expand Down
6 changes: 3 additions & 3 deletions src/routes/portfolio/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
</script>
<svelte:head>
<meta property="og:url" content="https://thisjt.me/" />
<meta property="og:url" content="https://thisjt.me/portfolio/{data.post?.slug || ''}" />
<meta property="og:image" content="https://thisjt.me/social2.png" />
<meta property="og:title" content={`${data.post?.title || 'error'} | portfolio - thisjt.me personal website`} />
<meta property="og:title" content={`${data.post?.title.toLowerCase() || 'error'} | portfolio - thisjt.me personal website`} />
<meta
property="og:description"
content={data.post?.content
Expand All @@ -61,7 +61,7 @@
: contentStrip(data.post.content)
: 'error - This portfolio page does not exist'} />
</svelte:head>
<PageTitle text={`${data.post?.title || 'error'} | portfolio`} />
<PageTitle text={`${data.post?.title.toLowerCase() || 'error'} | portfolio`} />
<div class="px-4 w-full">
<PageHeader level="h2" heading="Portfolio" />
{#if data.post}
Expand Down

0 comments on commit 7106d76

Please sign in to comment.