Skip to content

Commit

Permalink
upgrade to Eleventy 3.0 and convert to ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
madrilene committed Oct 2, 2024
1 parent 2aca381 commit 82204b1
Show file tree
Hide file tree
Showing 12 changed files with 855 additions and 838 deletions.
6 changes: 3 additions & 3 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const {EleventyI18nPlugin} = require('@11ty/eleventy');
import {EleventyI18nPlugin} from '@11ty/eleventy';

module.exports = function (eleventyConfig) {
export default async function (eleventyConfig) {
eleventyConfig.addPlugin(EleventyI18nPlugin, {
defaultLanguage: 'en', // Required
errorMode: 'allow-fallback' // Opting out of "strict"
Expand All @@ -20,4 +20,4 @@ module.exports = function (eleventyConfig) {
markdownTemplateEngine: 'njk',
htmlTemplateEngine: 'njk'
};
};
}
Loading

0 comments on commit 82204b1

Please sign in to comment.