diff --git a/content/posts/oatmeal/berry/cover.jpg b/content/posts/oatmeal/berry/cover.jpg new file mode 100644 index 0000000..16837bc Binary files /dev/null and b/content/posts/oatmeal/berry/cover.jpg differ diff --git a/content/posts/oatmeal/berry/cover.webp b/content/posts/oatmeal/berry/cover.webp deleted file mode 100644 index 8abb133..0000000 Binary files a/content/posts/oatmeal/berry/cover.webp and /dev/null differ diff --git a/content/posts/oatmeal/kiwi/cover.jpg b/content/posts/oatmeal/kiwi/cover.jpg new file mode 100644 index 0000000..518dec8 Binary files /dev/null and b/content/posts/oatmeal/kiwi/cover.jpg differ diff --git a/content/posts/oatmeal/kiwi/cover.webp b/content/posts/oatmeal/kiwi/cover.webp deleted file mode 100644 index cb9ad05..0000000 Binary files a/content/posts/oatmeal/kiwi/cover.webp and /dev/null differ diff --git a/content/posts/savory/broccoli-soup/cover.jpg b/content/posts/savory/broccoli-soup/cover.jpg new file mode 100644 index 0000000..0687653 Binary files /dev/null and b/content/posts/savory/broccoli-soup/cover.jpg differ diff --git a/content/posts/savory/broccoli-soup/cover.webp b/content/posts/savory/broccoli-soup/cover.webp deleted file mode 100644 index 925c4f5..0000000 Binary files a/content/posts/savory/broccoli-soup/cover.webp and /dev/null differ diff --git a/content/posts/savory/cauliflower-curry/cover.jpg b/content/posts/savory/cauliflower-curry/cover.jpg new file mode 100644 index 0000000..bc18029 Binary files /dev/null and b/content/posts/savory/cauliflower-curry/cover.jpg differ diff --git a/content/posts/savory/cauliflower-curry/cover.webp b/content/posts/savory/cauliflower-curry/cover.webp deleted file mode 100644 index 464bb74..0000000 Binary files a/content/posts/savory/cauliflower-curry/cover.webp and /dev/null differ diff --git a/content/posts/savory/farfalle-soup/cover.jpg b/content/posts/savory/farfalle-soup/cover.jpg new file mode 100644 index 0000000..aee892c Binary files /dev/null and b/content/posts/savory/farfalle-soup/cover.jpg differ diff --git a/content/posts/savory/farfalle-soup/cover.webp b/content/posts/savory/farfalle-soup/cover.webp deleted file mode 100644 index eb55304..0000000 Binary files a/content/posts/savory/farfalle-soup/cover.webp and /dev/null differ diff --git a/content/posts/savory/puff-pastry-snails/cover.jpg b/content/posts/savory/puff-pastry-snails/cover.jpg new file mode 100644 index 0000000..3e8a461 Binary files /dev/null and b/content/posts/savory/puff-pastry-snails/cover.jpg differ diff --git a/content/posts/savory/puff-pastry-snails/cover.webp b/content/posts/savory/puff-pastry-snails/cover.webp deleted file mode 100644 index ebda124..0000000 Binary files a/content/posts/savory/puff-pastry-snails/cover.webp and /dev/null differ diff --git a/content/posts/savory/strips-veggie-rice-bown/cover.jpg b/content/posts/savory/strips-veggie-rice-bown/cover.jpg new file mode 100644 index 0000000..d0c3a82 Binary files /dev/null and b/content/posts/savory/strips-veggie-rice-bown/cover.jpg differ diff --git a/content/posts/savory/strips-veggie-rice-bown/cover.webp b/content/posts/savory/strips-veggie-rice-bown/cover.webp deleted file mode 100644 index 7663ac0..0000000 Binary files a/content/posts/savory/strips-veggie-rice-bown/cover.webp and /dev/null differ diff --git a/content/posts/sweet/bundt cake/cover.jpg b/content/posts/sweet/bundt cake/cover.jpg new file mode 100644 index 0000000..f736e12 Binary files /dev/null and b/content/posts/sweet/bundt cake/cover.jpg differ diff --git a/content/posts/sweet/bundt cake/cover.webp b/content/posts/sweet/bundt cake/cover.webp deleted file mode 100644 index 566ed29..0000000 Binary files a/content/posts/sweet/bundt cake/cover.webp and /dev/null differ diff --git a/content/posts/sweet/cinnamon-rolls/cover.jpg b/content/posts/sweet/cinnamon-rolls/cover.jpg new file mode 100644 index 0000000..da8919c Binary files /dev/null and b/content/posts/sweet/cinnamon-rolls/cover.jpg differ diff --git a/content/posts/sweet/cinnamon-rolls/cover.webp b/content/posts/sweet/cinnamon-rolls/cover.webp deleted file mode 100644 index 69d0cdc..0000000 Binary files a/content/posts/sweet/cinnamon-rolls/cover.webp and /dev/null differ diff --git a/content/posts/sweet/cookies/cover.jpg b/content/posts/sweet/cookies/cover.jpg new file mode 100644 index 0000000..d5d6c2c Binary files /dev/null and b/content/posts/sweet/cookies/cover.jpg differ diff --git a/content/posts/sweet/cookies/cover.webp b/content/posts/sweet/cookies/cover.webp deleted file mode 100644 index d2e2821..0000000 Binary files a/content/posts/sweet/cookies/cover.webp and /dev/null differ diff --git a/content/posts/sweet/pancakes/cover.jpg b/content/posts/sweet/pancakes/cover.jpg new file mode 100644 index 0000000..154a3de Binary files /dev/null and b/content/posts/sweet/pancakes/cover.jpg differ diff --git a/content/posts/sweet/pancakes/cover.webp b/content/posts/sweet/pancakes/cover.webp deleted file mode 100644 index 4be1adc..0000000 Binary files a/content/posts/sweet/pancakes/cover.webp and /dev/null differ diff --git a/themes/bean/layouts/_default/single.html b/themes/bean/layouts/_default/single.html index cb90dc2..f342c33 100644 --- a/themes/bean/layouts/_default/single.html +++ b/themes/bean/layouts/_default/single.html @@ -69,10 +69,11 @@

Recent recipes

{{ end }}
{{ with .Resources }} - {{ with .GetMatch "{cover.*,*.jpg,*.webp,*.png,*.jpeg}" }} - -
+ {{ $image := .GetMatch "{cover.*,*.jpg,*.webp,*.png,*.jpeg}" }} + {{ $image := $image.Process "resize 250x" }} + {{ if $image }} +
{{ end }} {{ end }}
diff --git a/themes/bean/layouts/_default/taxonomy.html b/themes/bean/layouts/_default/taxonomy.html index 80c239d..619c691 100644 --- a/themes/bean/layouts/_default/taxonomy.html +++ b/themes/bean/layouts/_default/taxonomy.html @@ -44,9 +44,10 @@

{{ .Title }}

{{ end }} {{ with .Resources }} - {{ with .GetMatch "{cover.*,*.jpg,*.webp,*.png,*.jpeg}" }} -
+ {{ $image := .GetMatch "{cover.*,*.jpg,*.webp,*.png,*.jpeg}" }} + {{ $image := $image.Process "resize 800x" }} + {{ if $image }} +
{{ end }} {{ end }}
diff --git a/themes/bean/layouts/index.html b/themes/bean/layouts/index.html index fbce8ec..af8ec23 100644 --- a/themes/bean/layouts/index.html +++ b/themes/bean/layouts/index.html @@ -19,9 +19,10 @@

{{ .Title }}

{{ end }} {{ with .Resources }} - {{ with .GetMatch "{cover.*,*.jpg,*.webp,*.png,*.jpeg}" }} -
+ {{ $image := .GetMatch "{cover.*,*.jpg,*.webp,*.png,*.jpeg}" }} + {{ $image := $image.Process "resize 800x" }} + {{ if $image }} +
{{ end }} {{ end }}