Skip to content

Commit 20b6426

Browse files
committed
🚧 Improve embeds
1 parent bfe641b commit 20b6426

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

‎src/app.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
77

8-
<meta property="og:type" content="website" />
8+
<!-- <meta property="og:type" content="website" />
99
<meta content="Animated Java" property="og:title" />
1010
<meta
1111
content="A Blockbench plugin that makes complex animation a breeze in Minecraft: Java Edition."
@@ -16,7 +16,7 @@
1616
content="https://animated-java.github.io/img/animated_java_animated_icon.png"
1717
property="og:image"
1818
/>
19-
<meta content="#00ACED" data-react-helmet="true" name="theme-color" />
19+
<meta content="#00ACED" data-react-helmet="true" name="theme-color" /> -->
2020

2121
<script>
2222
const key = 'svelteness::color-scheme'

‎src/routes/+layout.svelte

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
Button,
1515
KitDocs,
1616
KitDocsLayout,
17-
SocialLink,
1817
createSidebarContext,
1918
type NavbarConfig
2019
} from '@svelteness/kit-docs'
@@ -34,8 +33,10 @@
3433
const { activeCategory } = createSidebarContext(sidebar)
3534
3635
$: category = $activeCategory ? `${$activeCategory}: ` : ''
37-
$: title = meta ? `${category}${meta.title} | Animated Java` : 'Animated Java'
38-
$: description = meta?.description
36+
$: title = meta ? `Animated Java | ${category}${meta.title}` : 'Animated Java'
37+
$: description =
38+
meta?.description ||
39+
'A Blockbench plugin that makes complex animation a breeze in Minecraft: Java Edition.'
3940
</script>
4041

4142
<svelte:head>
@@ -46,6 +47,15 @@
4647
{#if description}
4748
<meta name="description" content={description} />
4849
{/if}
50+
<meta property="og:type" content="website" />
51+
<meta content={title} property="og:title" />
52+
<meta content={description} property="og:description" />
53+
<meta content={$page.url} property="og:url" />
54+
<meta
55+
content="https://animated-java.github.io/img/animated_java_animated_icon.png"
56+
property="og:image"
57+
/>
58+
<meta content="#00ACED" data-react-helmet="true" name="theme-color" />
4959
{/key}
5060
</svelte:head>
5161

0 commit comments

Comments
 (0)