From ab48bfa194a3d24679062217dbe55e7eead51bee Mon Sep 17 00:00:00 2001 From: Starfall Date: Wed, 17 May 2023 20:26:42 -0500 Subject: switch to toml frontmatter --- eleventy.config.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'eleventy.config.js') 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', -- cgit