Skip to content

Commit d813aea

Browse files
docs: add twitter social card
1 parent 6c72e2b commit d813aea

File tree

4 files changed

+2
-1
lines changed

4 files changed

+2
-1
lines changed

docs/.vitepress/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default defineConfig({
2020
['meta', { name: 'twitter:description', content: ogDescription }],
2121
['meta', { name: 'twitter:image', content: ogImage }],
2222
['meta', { name: 'twitter:site', content: '@jschopplich' }],
23+
['meta', { name: 'twitter:creator', content: '@jschopplich' }],
2324
['meta', { name: 'twitter:card', content: 'summary_large_image' }],
2425
// Plausible analytics
2526
['script', { 'src': 'https://plausible.io/js/script.js', 'defer': '', 'data-domain': url.hostname }],

docs/.vitepress/meta.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export const ogUrl = 'https://unlazy.byjohann.dev/'
77
export const ogTitle = name
88
export const ogDescription = description
99
export const ogImage = `${ogUrl}og.jpg`
10+
export const twitterImage = `${ogUrl}twitter.jpg`
1011

1112
/* GitHub and social links */
1213
export const github = 'https://github.com/johannschopplich/unlazy'

docs/public/twitter.jpg

60.8 KB
Loading

packages/svelte/src/lib/UnLazyImage.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
})
3939
</script>
4040

41-
<!-- svelte-ignore a11y-missing-attribute -->
4241
<img
4342
bind:this={target}
4443
src={placeholderSrc}

0 commit comments

Comments
 (0)