nuxt-og-image 1.3.1 → 1.3.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.
package/README.md CHANGED
@@ -31,6 +31,9 @@ Enlightened OG Image generation for Nuxt 3.
31
31
 
32
32
  ℹ️ Looking for a complete SEO solution? Check out [Nuxt SEO Kit](https://github.com/harlan-zw/nuxt-seo-kit).
33
33
 
34
+ ## Demos
35
+
36
+ - [Alpine Theme](https://stackblitz.com/edit/github-hgunsf?file=package.json) (visit `/__og_image__`)
34
37
 
35
38
  ## Features
36
39
 
package/dist/module.json CHANGED
@@ -5,5 +5,5 @@
5
5
  "bridge": false
6
6
  },
7
7
  "configKey": "ogImage",
8
- "version": "1.3.1"
8
+ "version": "1.3.2"
9
9
  }
@@ -40,7 +40,7 @@ export function defineOgImage(options = {}) {
40
40
  },
41
41
  {
42
42
  property: "og:image",
43
- content: () => withBase(`${route}/__og_image__/og.png`, host)
43
+ content: () => withBase(`${route === "/" ? "" : route}/__og_image__/og.png`, host)
44
44
  },
45
45
  {
46
46
  property: "og:image:width",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-og-image",
3
3
  "type": "module",
4
- "version": "1.3.1",
4
+ "version": "1.3.2",
5
5
  "packageManager": "pnpm@7.8.0",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",