Move recipes images to /img/recipes

This commit is contained in:
maeligg 2021-06-08 10:07:13 +02:00
parent 91c7365085
commit 689112eaae
8 changed files with 7 additions and 7 deletions

View file

@ -71,8 +71,8 @@ module.exports = config => {
let metadata = await Image(`./src/${src}`, { let metadata = await Image(`./src/${src}`, {
widths: [600, 1500, 3000], widths: [600, 1500, 3000],
formats: ['webp', 'jpeg'], formats: ['webp', 'jpeg'],
outputDir: './_site/recipe-images', outputDir: './_site/img/recipes',
urlPath: '/recipe-images/' urlPath: '/img/recipes/'
}); });
let imageAttributes = { let imageAttributes = {

View file

@ -1,8 +1,8 @@
backend: backend:
name: git-gateway name: git-gateway
branch: main branch: main
media_folder: "src/recipe-images" media_folder: "src/img/recipes"
public_folder: "/recipe-images" public_folder: "/img/recipes"
collections: collections:
- name: "recipes" - name: "recipes"

View file

Before

Width:  |  Height:  |  Size: 208 KiB

After

Width:  |  Height:  |  Size: 208 KiB

View file

Before

Width:  |  Height:  |  Size: 573 KiB

After

Width:  |  Height:  |  Size: 573 KiB

View file

Before

Width:  |  Height:  |  Size: 232 KiB

After

Width:  |  Height:  |  Size: 232 KiB

View file

@ -1,6 +1,6 @@
--- ---
title: Coconut lentil soup title: Coconut lentil soup
image: /recipe-images/coconut-lentil-soup.jpg image: /img/recipes/coconut-lentil-soup.jpg
tags: tags:
- Soup 🥣 - Soup 🥣
- Vegetarian 🌿 - Vegetarian 🌿

View file

@ -1,6 +1,6 @@
--- ---
title: Courgette & lemon risotto title: Courgette & lemon risotto
image: /recipe-images/courgette-lemon-risotto.jpg image: /img/recipes/courgette-lemon-risotto.jpg
tags: tags:
- Italian 🇮🇹 - Italian 🇮🇹
- Vegetarian 🌿 - Vegetarian 🌿

View file

@ -1,6 +1,6 @@
--- ---
title: Simple brownies title: Simple brownies
image: /recipe-images/brownies.jpg image: /img/recipes/brownies.jpg
tags: tags:
- Sweet 🍬 - Sweet 🍬
- Cake 🍰 - Cake 🍰