slightly optimize nunjucks config

This commit is contained in:
maia arson crimew 2023-05-19 14:20:25 +02:00
parent 5a0601e532
commit b77e776752

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