Skip to content

Commit

Permalink
Address #36 - Enhancement: use eleventy-img, other image optimization…
Browse files Browse the repository at this point in the history
…s; implement elevety-img, takes care of 'Optimize image loading' and 'Reduce layout shift'
  • Loading branch information
rejhgadellaabsl committed Aug 25, 2022
1 parent 4fa5d58 commit dcf0705
Show file tree
Hide file tree
Showing 6 changed files with 1,014 additions and 51 deletions.
8 changes: 7 additions & 1 deletion .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ const tocPlugin = require('eleventy-plugin-toc');
// Markdown Libraries
const markdownIt = require('markdown-it');
const markdownItAnchor = require('markdown-it-anchor');
const markdownItAttrs = require('markdown-it-attrs')
const markdownItAttrs = require('markdown-it-attrs');

// Filters
const dateFilter = require('./src/filters/date-filter.js');
const w3DateFilter = require('./src/filters/w3-date-filter.js');
const cleanTocFilter = require('./src/filters/clean-toc-filter.js');

// Shortcodes
const imageShortcode = require('./src/shortcodes/image.js');

// Utils
const sortByDisplayOrder = require('./src/utils/sort-by-display-order.js');

Expand All @@ -22,6 +25,9 @@ module.exports = config => {
config.addFilter('w3DateFilter', w3DateFilter);
config.addFilter('cleanTocFilter', cleanTocFilter);

// Add shortcodes
config.addNunjucksAsyncShortcode('image', imageShortcode);

// Plugins
config.addPlugin(rssPlugin);
config.addPlugin(externalLinksPlugin);
Expand Down
Loading

0 comments on commit dcf0705

Please sign in to comment.