From c392e0ef69f2c5552230556944e915d15aa4bb72 Mon Sep 17 00:00:00 2001 From: Zekromaster Date: Fri, 27 May 2022 00:31:02 +0200 Subject: [PATCH] feat: Added the ability to define alt-text --- CHANGESFROMUPSTREAM.adoc | 3 +++ exampleSite/data/home/project.toml | 2 ++ layouts/partials/home.html | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 CHANGESFROMUPSTREAM.adoc diff --git a/CHANGESFROMUPSTREAM.adoc b/CHANGESFROMUPSTREAM.adoc new file mode 100644 index 0000000..de64000 --- /dev/null +++ b/CHANGESFROMUPSTREAM.adoc @@ -0,0 +1,3 @@ += Changes compared to upstream gangjun06/SimpleIntro + +* Projects have a new `imageAlt` field that defines the alt-text for the image. \ No newline at end of file diff --git a/exampleSite/data/home/project.toml b/exampleSite/data/home/project.toml index 014ebec..4561624 100644 --- a/exampleSite/data/home/project.toml +++ b/exampleSite/data/home/project.toml @@ -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, diff --git a/layouts/partials/home.html b/layouts/partials/home.html index d6858c2..46ac5f1 100644 --- a/layouts/partials/home.html +++ b/layouts/partials/home.html @@ -100,7 +100,7 @@ Sunset in the mountains