@fy-/fws-vue 0.5.7 → 0.6.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.
@@ -92,19 +92,20 @@ 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"],
95
+ ["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
- if (property === "description") {
108
+ if (property === "description" || property === "keywords") {
108
109
  metas.push({
109
110
  name: property,
110
111
  content: seo.value[seoKey as keyof LazyHead],
@@ -119,6 +120,10 @@ export const useSeo = (seo: Ref<LazyHead>, initial: boolean = false) => {
119
120
  });
120
121
  });
121
122
 
123
+ if (seo.value.description) {
124
+ metas.push({ name: "description", content: seo.value.description });
125
+ }
126
+
122
127
  return metas;
123
128
  }),
124
129
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "0.5.7",
3
+ "version": "0.6.0",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "repository": {