diff --git a/.eleventy.js b/.eleventy.js index 04888ec..ec6f381 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -8,16 +8,23 @@ module.exports = function(eleventyConfig) { eleventyConfig.addLayoutAlias('page', 'layouts/page') eleventyConfig.addLayoutAlias('article', 'layouts/article') - eleventyConfig.addFilter('readableDate', dateObj => { - return DateTime.fromJSDate(dateObj, { - zone: "Europe/Paris", - }).setLocale('en').toLocaleString(DateTime.DATE_FULL) + eleventyConfig.addPassthroughCopy('./src/assets/icons') + eleventyConfig.addPassthroughCopy('./src/assets/sprite.svg') + eleventyConfig.addPassthroughCopy({ + 'node_modules/svg-icon-sprite/dist/svg-icon-sprite.js': 'assets/svg-icon-sprite.js' }) + eleventyConfig.addPassthroughCopy('./src/assets/social-image.jpg') eleventyConfig.addNunjucksAsyncShortcode('image', require('./src/_11ty/imageShortcode').imageShortcode) + eleventyConfig.addFilter('readableDate', dateObj => { + return DateTime.fromJSDate(dateObj, { + zone: 'Europe/Paris', + }).setLocale('en').toLocaleString(DateTime.DATE_FULL) + }) + /* Creating a collection of blogposts by filtering based on folder and filetype */ - eleventyConfig.addCollection("blog", (collectionApi) => { + eleventyConfig.addCollection('blog', (collectionApi) => { return collectionApi.getFilteredByGlob('./src/blog/*.md').reverse() }) eleventyConfig.addCollection('categoryList', require('./src/_11ty/getCategoryList')) diff --git a/src/_includes/components/footer.njk b/src/_includes/components/footer.njk index d5edb02..ccb949c 100644 --- a/src/_includes/components/footer.njk +++ b/src/_includes/components/footer.njk @@ -1,3 +1,16 @@ \ No newline at end of file diff --git a/src/_includes/layouts/page.njk b/src/_includes/layouts/page.njk index d6972d9..5970a76 100644 --- a/src/_includes/layouts/page.njk +++ b/src/_includes/layouts/page.njk @@ -5,6 +5,7 @@