mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-01-22 09:20:00 +00:00
feat(11ty): add filter for post inspection and linkTarget
This commit is contained in:
parent
c41dc6763c
commit
bfe7cd148e
@ -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 => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user