@fy-/fws-vue 0.5.6 → 0.5.9

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/composables/seo.ts +13 -5
  2. package/package.json +1 -1
@@ -92,22 +92,30 @@ export const useSeo = (seo: Ref<LazyHead>, initial: boolean = false) => {
92
92
  const metaPairs = [
93
93
  ["name", "og:site_name"],
94
94
  ["title", "og:title", "twitter:title"],
95
- ["description", "og:description", "twitter:description", "description"],
95
+ ["description", "og:description", "twitter:description"],
96
96
  ["published", "article:published_time"],
97
97
  ["modified", "article:modified_time"],
98
98
  ["imageWidth", "og:image:width"],
99
99
  ["imageHeight", "og:image:height"],
100
100
  ["imageType", "og:image:type", "twitter:image:type"],
101
101
  ["image", "og:image", "twitter:image"],
102
+ ["keywords"],
102
103
  ];
103
104
 
104
105
  metaPairs.forEach(([seoKey, ...properties]) => {
105
106
  properties.forEach((property) => {
106
107
  if (seo.value[seoKey as keyof LazyHead]) {
107
- metas.push({
108
- property,
109
- content: seo.value[seoKey as keyof LazyHead] as string,
110
- });
108
+ if (property === "description" || property === "keywords") {
109
+ metas.push({
110
+ name: property,
111
+ content: seo.value[seoKey as keyof LazyHead],
112
+ });
113
+ } else {
114
+ metas.push({
115
+ property,
116
+ content: seo.value[seoKey as keyof LazyHead] as string,
117
+ });
118
+ }
111
119
  }
112
120
  });
113
121
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "0.5.6",
3
+ "version": "0.5.9",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "repository": {