diff options
author | Starfall <us@starfall.systems> | 2023-05-17 20:26:42 -0500 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2023-05-17 20:43:15 -0500 |
commit | ab48bfa194a3d24679062217dbe55e7eead51bee (patch) | |
tree | 3f64d35c076af8682a2c60c08626e5f722c7c607 /eleventy.config.js | |
parent | 1cc3d1798ec2b7d0cc2fde3f97aea346a22176bf (diff) |
switch to toml frontmatter
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', |