svelte-meta-tags 3.0.4 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/MetaTags.svelte +5 -0
- package/dist/MetaTags.svelte.d.ts +1 -0
- package/dist/types.d.ts +1 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -183,6 +183,7 @@ export const load = async ({ url }) => {
|
|
|
183
183
|
| `additionRobotsProps` | Object | Set the additional meta information for the `X-Robots-Tag` [More Info](#additionalRobotsProps) |
|
|
184
184
|
| `description` | string | Sets the meta description of the page |
|
|
185
185
|
| `canonical` | string | Make the page canonical URL |
|
|
186
|
+
| `keywords` | array | Sets the meta keywords of the page |
|
|
186
187
|
| `mobileAlternate.media` | string | Set the screen size from which the mobile site will be served |
|
|
187
188
|
| `mobileAlternate.href` | string | Set the alternate URL for the mobile page |
|
|
188
189
|
| `languageAlternates` | array | Set the language of the alternate urls. Expects array of objects with the shape: `{ hrefLang: string, href: string }` |
|
package/dist/MetaTags.svelte
CHANGED
|
@@ -9,6 +9,7 @@ export let twitter = void 0;
|
|
|
9
9
|
export let facebook = void 0;
|
|
10
10
|
export let openGraph = void 0;
|
|
11
11
|
export let canonical = void 0;
|
|
12
|
+
export let keywords = void 0;
|
|
12
13
|
export let additionalMetaTags = void 0;
|
|
13
14
|
export let additionalLinkTags = void 0;
|
|
14
15
|
$:
|
|
@@ -48,6 +49,10 @@ $:
|
|
|
48
49
|
<link rel="canonical" href={canonical} />
|
|
49
50
|
{/if}
|
|
50
51
|
|
|
52
|
+
{#if keywords?.length}
|
|
53
|
+
<meta name="keywords" content={keywords.join(', ')} />
|
|
54
|
+
{/if}
|
|
55
|
+
|
|
51
56
|
{#if mobileAlternate}
|
|
52
57
|
<link rel="alternate" media={mobileAlternate.media} href={mobileAlternate.href} />
|
|
53
58
|
{/if}
|
|
@@ -13,6 +13,7 @@ declare const __propDef: {
|
|
|
13
13
|
facebook?: MetaTagsProps['facebook'];
|
|
14
14
|
openGraph?: MetaTagsProps['openGraph'];
|
|
15
15
|
canonical?: MetaTagsProps['canonical'];
|
|
16
|
+
keywords?: MetaTagsProps['keywords'];
|
|
16
17
|
additionalMetaTags?: MetaTagsProps['additionalMetaTags'];
|
|
17
18
|
additionalLinkTags?: MetaTagsProps['additionalLinkTags'];
|
|
18
19
|
};
|
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-meta-tags",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Svelte Meta Tags provides components designed to help you manage SEO for Svelte projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
"schema-dts": "^1.1.2"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@sveltejs/adapter-auto": "^2.1.
|
|
25
|
-
"@sveltejs/kit": "^1.
|
|
24
|
+
"@sveltejs/adapter-auto": "^2.1.1",
|
|
25
|
+
"@sveltejs/kit": "^1.27.4",
|
|
26
26
|
"@sveltejs/package": "^2.2.2",
|
|
27
|
-
"publint": "^0.2.
|
|
28
|
-
"svelte": "^4.2.
|
|
27
|
+
"publint": "^0.2.5",
|
|
28
|
+
"svelte": "^4.2.2",
|
|
29
29
|
"svelte-check": "^3.5.2",
|
|
30
30
|
"tslib": "^2.6.2",
|
|
31
31
|
"typescript": "^5.2.2",
|
|
32
|
-
"vite": "^4.
|
|
32
|
+
"vite": "^4.5.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"svelte": "^3.55.0 || ^4.0.0"
|