diff --git a/eleventy.config.js b/eleventy.config.js index 057b7bb..476e141 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -76,7 +76,8 @@ export default async function (eleventyConfig) { outputDir: './public/img/', defaultAttributes: { loading: 'lazy', - decoding: 'async' + decoding: 'async', + sizes: '(min-width: 1280px) 960px, (min-width: 1024px) 768px, (min-width: 640px) 640px, 480px' } }); eleventyConfig.addPlugin(feedPlugin, { diff --git a/src/posts.njk b/src/posts.njk index 42950ad..9cebc3b 100644 --- a/src/posts.njk +++ b/src/posts.njk @@ -20,7 +20,7 @@ pagination: {% if post.data.image and post.data.image.src != '' %} - {{ post.data.image.alt }} + {{ post.data.image.alt }} {% endif %}

{{ post.data.description }}