@zedtech/zedkit-payload-seo 0.1.0 → 0.1.2

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.
Files changed (2) hide show
  1. package/README.md +16 -2
  2. package/package.json +19 -2
package/README.md CHANGED
@@ -1,12 +1,20 @@
1
1
  # @zedtech/zedkit-payload-seo
2
2
 
3
- Localized Payload SEO group field with length validation.
4
- Original work by the same author.
3
+ [![npm version](https://img.shields.io/npm/v/@zedtech/zedkit-payload-seo.svg)](https://www.npmjs.com/package/@zedtech/zedkit-payload-seo)
4
+ [![license: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](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.0",
3
+ "version": "0.1.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"
7
7
  },
8
- "description": "Localized Payload SEO group field with length validation.",
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",