eleventy-plugin-asciidoc 4.0.0 → 4.0.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.
@@ -97,8 +97,11 @@ function eleventyAsciidoctor(convertOptions = {}) {
97
97
 
98
98
  if (outdir === undefined) {
99
99
  const { page } = data ?? {};
100
- const { outputPath } = page ?? {};
101
- if (outputPath !== undefined) {
100
+
101
+ // When front matter `permalink` is `false`, `outputPath` will be `false'.
102
+ // So, keeping that as default value.
103
+ const { outputPath = false } = page ?? {};
104
+ if (outputPath !== false) {
102
105
  outdir = path.dirname(outputPath);
103
106
  }
104
107
  }
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "eleventy-plugin-asciidoc",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "Adds support for AsciiDoc to Eleventy",
5
5
  "main": ".eleventy.js",
6
+ "funding": "https://github.com/sponsors/saneef/",
6
7
  "repository": {
7
8
  "type": "git",
8
- "url": "git+https://github.com:saneef/eleventy-plugin-asciidoc.git"
9
+ "url": "git+https://github.com/saneef/eleventy-plugin-asciidoc.git"
9
10
  },
10
11
  "scripts": {
11
12
  "lint": "eslint lib/**.js tests/**.js",