feat(11ty): add filter for post inspection and linkTarget

This commit is contained in:
Oscar 2019-11-12 15:08:40 +01:00
parent c41dc6763c
commit bfe7cd148e

View File

@ -1,6 +1,13 @@
module.exports = function (config) {
// Add a filter using the Config API
// config.addFilter("myFilter", function () { });
config.addFilter('linkTarget', (slug) => `#${slug}`);
config.addFilter('postInspect', function (post) {
console.log(post);
})
config.addPassthroughCopy({'_site/css/': 'assets/css/'})
// Add collections here
config.addCollection('definitions', collection => {