File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
src/lib/components/molecules Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ <script lang =" ts" >
2
+ type Props = { title: string ; image? : string ; description? : string ; websiteUrl? : string };
3
+ let { title, image, description, websiteUrl }: Props = $props ();
4
+ </script >
5
+
6
+ <svelte:head >
7
+ <meta name ="title" content ={title } />
8
+ {#if description }
9
+ <meta name ="description" content ={description } />
10
+ {/if }
11
+
12
+ <!-- Open Graph / Facebook -->
13
+ <meta property =" og:type" content =" website" />
14
+ <meta property =" og:url" content =" https://metatags.io/" />
15
+ <meta property ="og:title" content ={title } />
16
+ {#if description }
17
+ <meta property ="og:description" content ={description } />
18
+ {/if }
19
+ <meta property =" og:image" content =" https://metatags.io/images/meta-tags.png" />
20
+
21
+ <!-- Twitter -->
22
+ <meta property =" twitter:card" content =" summary_large_image" />
23
+ <meta property =" twitter:url" content =" https://metatags.io/" />
24
+ <meta property ="twitter:title" content ={title } />
25
+ {#if description }
26
+ <meta property ="twitter:description" content ={description } />
27
+ {/if }
28
+ <meta property =" twitter:image" content =" https://metatags.io/images/meta-tags.png" />
29
+ </svelte:head >
You can’t perform that action at this time.
0 commit comments