slightly optimize nunjucks config

pull/1/head
maia arson crimew 2023-05-19 14:20:25 +02:00
parent 5a0601e532
commit b77e776752
1 changed files with 5 additions and 0 deletions

View File

@ -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);