@zedtech/zedkit-payload-seo 0.1.0 → 0.1.1
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 +16 -2
- package/package.json +19 -2
package/README.md
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
# @zedtech/zedkit-payload-seo
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@zedtech/zedkit-payload-seo)
|
|
4
|
+
[](https://github.com/zedtech-fr/zedkit/blob/main/LICENSE)
|
|
5
|
+
|
|
6
|
+
Drop-in localized SEO group field for Payload CMS: meta tags, JSON-LD
|
|
7
|
+
and length validation, ready for i18n sites. Original work by the same
|
|
8
|
+
author.
|
|
9
|
+
|
|
10
|
+
## Install
|
|
5
11
|
|
|
6
12
|
```sh
|
|
7
13
|
pnpm add @zedtech/zedkit-payload-seo
|
|
8
14
|
```
|
|
9
15
|
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
10
18
|
```ts
|
|
11
19
|
import { seoGroupField } from "@zedtech/zedkit-payload-seo";
|
|
12
20
|
|
|
@@ -16,6 +24,12 @@ export const Page = {
|
|
|
16
24
|
};
|
|
17
25
|
```
|
|
18
26
|
|
|
27
|
+
## When to use
|
|
28
|
+
|
|
29
|
+
Reach for this package when your Payload collections need per-locale
|
|
30
|
+
SEO fields. To render the stored values (metadata, sitemaps, JSON-LD),
|
|
31
|
+
pair it with `@zedtech/zedkit-seo`.
|
|
32
|
+
|
|
19
33
|
`seoFields()` returns the nine leaf fields (meta title/description,
|
|
20
34
|
keywords, canonical URL, OG title/description/image, robots
|
|
21
35
|
noindex/nofollow); `seoGroupField()` wraps them in a group (default
|
package/package.json
CHANGED
|
@@ -1,11 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zedtech/zedkit-payload-seo",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
7
7
|
},
|
|
8
|
-
"description": "
|
|
8
|
+
"description": "Drop-in localized SEO group field: meta tags, JSON-LD and length validation, ready for i18n sites.",
|
|
9
|
+
"keywords": [
|
|
10
|
+
"payloadcms",
|
|
11
|
+
"payload",
|
|
12
|
+
"seo",
|
|
13
|
+
"cms",
|
|
14
|
+
"meta-tags",
|
|
15
|
+
"json-ld",
|
|
16
|
+
"open-graph",
|
|
17
|
+
"localization",
|
|
18
|
+
"i18n",
|
|
19
|
+
"nextjs",
|
|
20
|
+
"typescript"
|
|
21
|
+
],
|
|
22
|
+
"homepage": "https://github.com/zedtech-fr/zedkit/tree/main/packages/payload-seo",
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/zedtech-fr/zedkit/issues"
|
|
25
|
+
},
|
|
9
26
|
"license": "MIT",
|
|
10
27
|
"repository": {
|
|
11
28
|
"type": "git",
|