From b77e776752cdada0a8e9479c2f23965acad47609 Mon Sep 17 00:00:00 2001 From: maia arson crimew Date: Fri, 19 May 2023 14:20:25 +0200 Subject: [PATCH] slightly optimize nunjucks config --- .eleventy.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.eleventy.js b/.eleventy.js index e43532f..16ddd86 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -14,6 +14,11 @@ module.exports = function (eleventyConfig) { const formatPart = (part, date) => new Intl.DateTimeFormat("en", part).format(date); + eleventyConfig.setNunjucksEnvironmentOptions({ + lstripBlocks: true, + trimBlocks: true + }); + eleventyConfig.addPlugin(pluginRss); eleventyConfig.addPlugin(syntaxHighlight); eleventyConfig.addPlugin(timeToRead);