feat: Added the ability to define alt-text
This commit is contained in:
parent
50c1be2cea
commit
c392e0ef69
|
@ -0,0 +1,3 @@
|
|||
= Changes compared to upstream gangjun06/SimpleIntro
|
||||
|
||||
* Projects have a new `imageAlt` field that defines the alt-text for the image.
|
|
@ -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,
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue