eleventy-plugin-asciidoc 1.3.2 → 1.3.3
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 +2 -2
- package/lib/eleventy-asciidoc.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,8 +10,8 @@ The plugin uses [Asciidoctor.js](https://docs.asciidoctor.org/asciidoctor.js) un
|
|
|
10
10
|
|
|
11
11
|
- Supports the default [YAML front matter](https://www.11ty.dev/docs/data-frontmatter/).
|
|
12
12
|
- Supports [AsciiDoc document title](https://docs.asciidoctor.org/asciidoc/latest/document/title/#title-syntax)
|
|
13
|
-
- Other attributes in the AsciiDoc files are made available through `
|
|
14
|
-
- Example `:author: Jane Doe` in the `.adoc` file will be available as `
|
|
13
|
+
- Other attributes in the AsciiDoc files are made available in templates through `asciidocAttributes`.
|
|
14
|
+
- Example `:author: Jane Doe` in the `.adoc` file will be available as `asciidocAttrbutes.author`
|
|
15
15
|
|
|
16
16
|
## Usage
|
|
17
17
|
|
package/lib/eleventy-asciidoc.js
CHANGED
|
@@ -31,7 +31,7 @@ const getData = (inputPath) => {
|
|
|
31
31
|
const attributes = doc.getAttributes();
|
|
32
32
|
const title = doc.getDocumentTitle();
|
|
33
33
|
debug(`Document title ${title}`);
|
|
34
|
-
debug(`Document attributes: ${attributes}`);
|
|
34
|
+
debug(`Document attributes: ${JSON.stringify(attributes)}`);
|
|
35
35
|
|
|
36
36
|
return {
|
|
37
37
|
title,
|