24 lines
567 B
JavaScript
24 lines
567 B
JavaScript
const syntaxHighlight = require('@11ty/eleventy-plugin-syntaxhighlight');
|
|
|
|
module.exports = (config) => {
|
|
config.addPlugin(syntaxHighlight);
|
|
config.addPassthroughCopy({ 'src/assets': 'assets' });
|
|
config.setFrontMatterParsingOptions({
|
|
excerpt: true,
|
|
excerpt_sperator: ' <!-- excerpt -->',
|
|
});
|
|
config.setTemplateFormats(['jpg', 'png', 'webp', 'md', 'njk']);
|
|
config.setBrowserSyncConfig({
|
|
files: ['dist/**/*'],
|
|
open: true,
|
|
});
|
|
config.setDataDeepMerge(true);
|
|
|
|
return {
|
|
dir: {
|
|
input: 'src',
|
|
output: 'dist',
|
|
},
|
|
};
|
|
};
|