@sveti/ba1-config 1.5.4 → 1.5.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.
- package/buildawesome.config.js +2 -2
- package/package.json +6 -7
package/buildawesome.config.js
CHANGED
|
@@ -8,11 +8,11 @@ import onePlugin from "@sveti/ba1-plugin";
|
|
|
8
8
|
import { siteData } from "@sveti/ba1-plugin/features/siteData.js";
|
|
9
9
|
import pluginTOC from "@uncenter/eleventy-plugin-toc";
|
|
10
10
|
/* Libraries (A-Z) */
|
|
11
|
+
import { load as loadYaml } from "js-yaml";
|
|
11
12
|
import markdownIt from "markdown-it";
|
|
12
13
|
import markdownItAnchor from "markdown-it-anchor";
|
|
13
14
|
import markdownItAttrs from "markdown-it-attrs";
|
|
14
15
|
import slugify from "@sindresorhus/slugify";
|
|
15
|
-
import YAML from "yaml";
|
|
16
16
|
/* System (A-Z) */
|
|
17
17
|
import fs from "node:fs";
|
|
18
18
|
import path from "node:path";
|
|
@@ -97,7 +97,7 @@ export default async function ($config, pluginOptions = {}) {
|
|
|
97
97
|
//```<!--section:code-->```js
|
|
98
98
|
|
|
99
99
|
/* Data */
|
|
100
|
-
$config.addDataExtension("yml,yaml", (contents) =>
|
|
100
|
+
$config.addDataExtension("yml,yaml", (contents) => loadYaml(contents));
|
|
101
101
|
$config.addGlobalData("layout", "default");
|
|
102
102
|
// Sitemap
|
|
103
103
|
$config.addTemplate("sitemap.xml.njk", "", {
|
package/package.json
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sveti/ba1-config",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./buildawesome.config.js",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@11ty/eleventy-navigation": "^1.0.5",
|
|
8
8
|
"@11ty/eleventy-plugin-rss": "^3.1.0",
|
|
9
|
-
"@sveti/blades": "^3.1.4",
|
|
10
9
|
"@sveti/ba1-cli": "^1.5.1",
|
|
11
|
-
"@sveti/ba1-plugin": "^1.5.
|
|
12
|
-
"@
|
|
10
|
+
"@sveti/ba1-plugin": "^1.5.1",
|
|
11
|
+
"@sveti/blades": "^3.1.4",
|
|
12
|
+
"@uncenter/eleventy-plugin-toc": "^2.1.2",
|
|
13
13
|
"markdown-it": "^15.0.3",
|
|
14
|
-
"markdown-it-anchor": "^10.
|
|
15
|
-
"markdown-it-attrs": "^5.0.1"
|
|
16
|
-
"yaml": "^2.9.1"
|
|
14
|
+
"markdown-it-anchor": "^10.1.0",
|
|
15
|
+
"markdown-it-attrs": "^5.0.1"
|
|
17
16
|
},
|
|
18
17
|
"peerDependencies": {
|
|
19
18
|
"@11ty/eleventy": "^3.0.0 || ^4.0.0-0",
|