diff options
Diffstat (limited to 'eleventy.config.js')
-rw-r--r-- | eleventy.config.js | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/eleventy.config.js b/eleventy.config.js deleted file mode 100644 index 9adfcf0..0000000 --- a/eleventy.config.js +++ /dev/null @@ -1,39 +0,0 @@ -module.exports = eleventyConfig => { - eleventyConfig.addPlugin(require('@11ty/eleventy-plugin-syntaxhighlight')) - eleventyConfig.addPlugin(require('@11ty/eleventy-plugin-rss')) - - eleventyConfig.setLibrary('md', require('markdown-it')({ - html: true, - linkify: true, - typographer: true - }).use(require('markdown-it-attrs'))) - - const { DateTime } = require('luxon') - eleventyConfig.addFilter('datefmt', date => { - return DateTime.fromJSDate(date, { zone: 'utc' }).toFormat("dd LLL yyyy"); - }) - - eleventyConfig.addPassthroughCopy('static/') - eleventyConfig.addPassthroughCopy('favicon.svg') - eleventyConfig.addPassthroughCopy('favicon.ico') - - return { - dir: { - input: 'src', - output: 'dist', - includes: 'includes', - data: 'data', - layouts: 'layouts' - }, - - dataTemplateEngine: 'njk', - markdownTemplateEngine: 'njk', - htmlTemplateEngine: 'njk', - templateFormats: [ - 'html', - 'md', - 'njk', - '11ty.js' - ] - } -} |