diff --git a/assets/imgs/art/all-crustaceans-really-are-beautiful.jpeg b/assets/imgs/art/all-crustaceans-really-are-beautiful.jpeg new file mode 100644 index 000000000..762f293d4 Binary files /dev/null and b/assets/imgs/art/all-crustaceans-really-are-beautiful.jpeg differ diff --git a/content/art/all-crustaceans-really-are-beautiful.md b/content/art/all-crustaceans-really-are-beautiful.md index d7ab9eb4d..fbaf5d869 100644 --- a/content/art/all-crustaceans-really-are-beautiful.md +++ b/content/art/all-crustaceans-really-are-beautiful.md @@ -3,9 +3,10 @@ title: "All Crustaceans Really Are Beautiful " alias: - "All Crustaceans Really Are Beautiful" created: 2023-07-14T10:49:26+10:00 -modified: 2023-07-14T10:57:29+10:00 +modified: 2023-07-14T11:19:02+10:00 kofi: "https://ko-fi.com/i/IT6T2N6X0U" cover: "/imgs/art/all-crustaceans-really-are-beautiful.jpeg" +alt: "An illustration of a stylized cartoon red crab standing on the ocean floor with a banner that reads a crab." tags: - oeuvre - digital painting diff --git a/content/art/autumn-pumpkins.md b/content/art/autumn-pumpkins.md index c4a256068..1d2fe3752 100644 --- a/content/art/autumn-pumpkins.md +++ b/content/art/autumn-pumpkins.md @@ -3,9 +3,10 @@ title: "autumn pumpkins" alias: - "autumn pumpkins" created: 2023-06-06T00:00:00+10:00 -modified: 2023-06-18T19:55:06+10:00 +modified: 2023-07-14T11:20:23+10:00 kofi: "https://ko-fi.com/i/IF1F6LYK3N" cover: "/imgs/art/autumn-pumpkins.jpg" +alt: "A digital painting of two cheese pumpkins in a notebook." tags: - oeuvre - digital painting diff --git a/layouts/partials/art-display.html b/layouts/partials/art-display.html index 25d579d1e..ffc80f424 100644 --- a/layouts/partials/art-display.html +++ b/layouts/partials/art-display.html @@ -8,11 +8,17 @@

Recent Art

{{- $img := "" -}} {{- if and (isset .Params "cover") -}} + {{- $alt := "" -}} + {{- if .Params.alt -}} + {{- $alt = .Params.alt }} + {{- else -}} + {{- $alt = "This image is missing alt text." }} + {{- end -}} {{- if .Params.kofi -}} - + {{ $alt }}. View of Ko-Fi.

{{- .Title -}} on Ko-Fi

{{- else -}} - + {{ $alt }}

{{- .Title -}}

{{- end -}} {{else}} diff --git a/layouts/shortcodes/page-gallery.html b/layouts/shortcodes/page-gallery.html index 3b6074889..1936a2322 100644 --- a/layouts/shortcodes/page-gallery.html +++ b/layouts/shortcodes/page-gallery.html @@ -7,10 +7,16 @@ {{- $img = resources.GetMatch (printf "%s" .Params.cover) -}}