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}`, {
widths: [600, 1500, 3000],
formats: ['webp', 'jpeg'],
outputDir: './_site/recipe-images',
urlPath: '/recipe-images/'
outputDir: './_site/img/recipes',
urlPath: '/img/recipes/'
});
let imageAttributes = {

View file

@ -1,8 +1,8 @@
backend:
name: git-gateway
branch: main
media_folder: "src/recipe-images"
public_folder: "/recipe-images"
media_folder: "src/img/recipes"
public_folder: "/img/recipes"
collections:
- 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
image: /recipe-images/coconut-lentil-soup.jpg
image: /img/recipes/coconut-lentil-soup.jpg
tags:
- Soup 🥣
- Vegetarian 🌿

View file

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

View file

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