feat: Added the ability to define alt-text

This commit is contained in:
Zekromaster 2022-05-27 00:31:02 +02:00
parent 50c1be2cea
commit c392e0ef69
No known key found for this signature in database
GPG Key ID: ACF094DEBDED347E
3 changed files with 6 additions and 1 deletions

3
CHANGESFROMUPSTREAM.adoc Normal file
View File

@ -0,0 +1,3 @@
= Changes compared to upstream gangjun06/SimpleIntro
* Projects have a new `imageAlt` field that defines the alt-text for the image.

View File

@ -1,6 +1,7 @@
[[list]]
title = "lorem"
image = "https://picsum.photos/400/200"
imageAlt = "A random image selected from picsum"
text = """
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Voluptatibus quia, nulla! Maiores et perferendis eaque,
@ -9,6 +10,7 @@
[[list]]
title = "lorem"
image = "https://picsum.photos/400/200"
imageAlt = "A random image selected from picsum"
text = """
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Voluptatibus quia, nulla! Maiores et perferendis eaque,

View File

@ -100,7 +100,7 @@
<img
class="w-full h-48"
src="{{ .image }}"
alt="Sunset in the mountains"
alt="{{ .imageAlt }}"
/>
</a>
<div class="px-6 py-4">