commit 679b0c329ece039ff4d851ec1e12e6f1a797dc6a Author: hiro hiro@torproject.org Date: Wed Mar 24 22:56:41 2021 +0100
Add image to template --- templates/blocks/slide.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/templates/blocks/slide.html b/templates/blocks/slide.html index cd587cd..efc2ea4 100644 --- a/templates/blocks/slide.html +++ b/templates/blocks/slide.html @@ -13,6 +13,8 @@ <section {% if this.background != "white" %} data-background-color="{{ this.background }}" {% else %} data-background-color="white" {% endif %} > <h2>{{ this.title }}</h2> {{ this.description }} - + {% if this.image %} + <img data-src="{{ this.image }}"> + {% endif %} </section> {% endif %}