diff options
Diffstat (limited to 'eleventy.config.js')
-rw-r--r-- | eleventy.config.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/eleventy.config.js b/eleventy.config.js index 79bd47a..2d222ae 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -11,12 +11,21 @@ filter_rfc3339_datetime = function(date) { return date.toISOString().replace('T', ' '); } +const toml = require('@iarna/toml') + module.exports = function(eleventyConfig) { eleventyConfig.addPassthroughCopy('./css/') eleventyConfig.addFilter('local_date', filter_local_date) eleventyConfig.addFilter('rfc3339_datetime', filter_rfc3339_datetime) + eleventyConfig.setFrontMatterParsingOptions({ + engines: { + toml: toml.parse.bind(toml) + }, + language: 'toml' + }) + return { dir: { input: 'src', |