@fy-/fws-vue 2.0.4 → 2.0.5

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 -13
  2. package/package.json +1 -1
@@ -43,21 +43,23 @@ export const useSeo = (seoData: Ref<LazyHead>, initial: boolean = false) => {
43
43
  });
44
44
  }
45
45
 
46
- /*
47
- if (seoData.value.imageHeight && seoData.value.image) {
46
+ if (seoData.value.image) {
48
47
  metas.push({
49
- property: "og:image:height",
50
- content: seoData.value.imageHeight,
51
- key: "og:image:height",
48
+ property: "og:image",
49
+ content: seoData.value.image,
50
+ key: "og:image",
52
51
  });
53
- }
54
- if (seoData.value.imageWidth && seoData.value.image) {
55
52
  metas.push({
56
- property: "og:image:width",
57
- content: seoData.value.imageWidth,
58
- key: "og:image:width",
53
+ name: "twitter:image",
54
+ content: seoData.value.image,
55
+ key: "twitter:image",
59
56
  });
60
- }*/
57
+ metas.push({
58
+ name: "image",
59
+ content: seoData.value.image,
60
+ key: "image",
61
+ });
62
+ }
61
63
  if (seoData.value.imageType && seoData.value.image) {
62
64
  metas.push({
63
65
  property: "og:image:type",
@@ -127,12 +129,10 @@ export const useSeo = (seoData: Ref<LazyHead>, initial: boolean = false) => {
127
129
  title: () => seoData.value.title,
128
130
  ogTitle: () => seoData.value.title,
129
131
  ogDescription: () => seoData.value.description,
130
- ogImage: () => seoData.value.image,
131
132
  twitterCard: "summary_large_image",
132
133
  ogSiteName: () => seoData.value.name,
133
134
  twitterTitle: () => seoData.value.title,
134
135
  twitterDescription: () => seoData.value.description,
135
- twitterImage: () => seoData.value.image,
136
136
  ogImageAlt: () => {
137
137
  if (seoData.value.image) {
138
138
  return seoData.value.title;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "2.0.04",
3
+ "version": "2.0.05",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "repository": {