generated from inherentlee/11ty
navigation
This commit is contained in:
1 parent
1dbb965630
commit
bd887fec26
3 files changed
+20
-7
No files matched your search
+4
-7
@@ -1,5 +1,6 @@
|
|||||||
import { HtmlBasePlugin } from "@11ty/eleventy";
|
import { HtmlBasePlugin } from "@11ty/eleventy";
|
||||||
import { eleventyImageTransformPlugin } from "@11ty/eleventy-img";
|
import { eleventyImageTransformPlugin } from "@11ty/eleventy-img";
|
||||||
|
import eleventyNavigationPlugin from "@11ty/eleventy-navigation";
|
||||||
|
|
||||||
import { attrs } from "@mdit/plugin-attrs";
|
import { attrs } from "@mdit/plugin-attrs";
|
||||||
import { markdownitLinkAttributes } from 'markdown-it-link-attributes';
|
import { markdownitLinkAttributes } from 'markdown-it-link-attributes';
|
||||||
@@ -66,18 +67,14 @@ export default async function (eleventyConfig) {
|
|||||||
decoding: "async",
|
decoding: "async",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
/* If you want to use specific images as the OG image...
|
|
||||||
filenameFormat: function (hash, src, width, format, options) {
|
filenameFormat: function (hash, src, width, format, options) {
|
||||||
// If you're building multiple widths
|
|
||||||
// const extension = path.extname(src);
|
|
||||||
// const name = path.basename(src, extension);
|
|
||||||
// return `${name}-${width}.${extension}`;
|
|
||||||
|
|
||||||
return path.basename(src);
|
return path.basename(src);
|
||||||
},
|
},
|
||||||
*/
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/* Navigation */
|
||||||
|
eleventyConfig.addPlugin(eleventyNavigationPlugin);
|
||||||
|
|
||||||
/* All filters from _config/filters.js */
|
/* All filters from _config/filters.js */
|
||||||
eleventyConfig.addPlugin(pluginFilters);
|
eleventyConfig.addPlugin(pluginFilters);
|
||||||
|
|
||||||
|
|||||||
Generated
+15
@@ -10,6 +10,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@11ty/eleventy": "^3.1.5",
|
"@11ty/eleventy": "^3.1.5",
|
||||||
"@11ty/eleventy-img": "^6.0.4",
|
"@11ty/eleventy-img": "^6.0.4",
|
||||||
|
"@11ty/eleventy-navigation": "^1.0.5",
|
||||||
"@mdit/plugin-attrs": "^0.25.1",
|
"@mdit/plugin-attrs": "^0.25.1",
|
||||||
"luxon": "^3.7.2",
|
"luxon": "^3.7.2",
|
||||||
"markdown-it-anchor": "^10.0.0",
|
"markdown-it-anchor": "^10.0.0",
|
||||||
@@ -167,6 +168,20 @@
|
|||||||
"url": "https://opencollective.com/11ty"
|
"url": "https://opencollective.com/11ty"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@11ty/eleventy-navigation": {
|
||||||
|
"version": "1.0.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@11ty/eleventy-navigation/-/eleventy-navigation-1.0.5.tgz",
|
||||||
|
"integrity": "sha512-zb6xe29cM9viSdYtZywKIkJw2HIROyBINdBcFWC9uD0c/jYOTAex5nwy3HNEuh5t6/Ld/S9V4gEizfmeYuYpCQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"dependency-graph": "^1.0.0"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"type": "opencollective",
|
||||||
|
"url": "https://opencollective.com/11ty"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@11ty/eleventy-plugin-bundle": {
|
"node_modules/@11ty/eleventy-plugin-bundle": {
|
||||||
"version": "3.0.7",
|
"version": "3.0.7",
|
||||||
"resolved": "https://registry.npmjs.org/@11ty/eleventy-plugin-bundle/-/eleventy-plugin-bundle-3.0.7.tgz",
|
"resolved": "https://registry.npmjs.org/@11ty/eleventy-plugin-bundle/-/eleventy-plugin-bundle-3.0.7.tgz",
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@11ty/eleventy": "^3.1.5",
|
"@11ty/eleventy": "^3.1.5",
|
||||||
"@11ty/eleventy-img": "^6.0.4",
|
"@11ty/eleventy-img": "^6.0.4",
|
||||||
|
"@11ty/eleventy-navigation": "^1.0.5",
|
||||||
"@mdit/plugin-attrs": "^0.25.1",
|
"@mdit/plugin-attrs": "^0.25.1",
|
||||||
"luxon": "^3.7.2",
|
"luxon": "^3.7.2",
|
||||||
"markdown-it-anchor": "^10.0.0",
|
"markdown-it-anchor": "^10.0.0",
|
||||||
|
|||||||
Reference in new issue
Block a user