1.0.0-alpha.11 • Published 6 years ago
@visual-framework/vf-eleventy--extensions v1.0.0-alpha.11
vf-eleventy--extensions
This project supports vf-eleventy-based
projects with reusable componentised code, modules and config.
What's here and what it does
index.js: the main Eleventy plugin
Config
config/vfEleventyCommonConfig.js: Reusable config for sane defaults and to load the below tags and filters
Nunjucks tags
in ./tags/
codeblock.js: outputs highlight code markupmarkdwon_tag.js: process a text area as markdownrender.js: port-fork-enhancement of the Fractal render extension for Nunjucks for 11ty and the VFspaceless.js: trim unneeded whitespace
Nunjucks filters
in ./filters/
markdown.js: process a string as markdownsection.js: split the content into excerpt and remainderpath.js: catch references to the "path" filter which is not part of 11ty and results in obtuse error codes
Assorted utilities
In ./utils/
vf-build-search-index.gulpfile.js: scans compiled html to make a JS object search index
Usage
Note: Projects utilising vf-eleventy make use of this package by defualt.
- a project based off
vf-eleventy yarn add @visual-framework/vf-eleventy--extensionsin
eleventy.jsyou should have:
const vfEleventyExtension = require("@visual-framework/vf-eleventy--extensions");
config.addPlugin(vfEleventyExtension);- in
gulpfile.jsyou should have:
global.vfDocsPath = __dirname + '/node_modules/\@visual-framework/vf-eleventy--extensions/fractal/docs';1.0.0-alpha.11
6 years ago
1.0.0-alpha.10
6 years ago
1.0.0-alpha.9
6 years ago
1.0.0-alpha.8
6 years ago
1.0.0-alpha.7
6 years ago
1.0.0-alpha.6
6 years ago
1.0.0-alpha.5
6 years ago
1.0.0-alpha.4
6 years ago
1.0.0-alpha.3
6 years ago
1.0.0-alpha.2
6 years ago
1.0.0-alpha.1
6 years ago