[tor-commits] [community/slideshow] Add image to template
hiro at torproject.org
hiro at torproject.org
Wed Mar 24 21:57:17 UTC 2021
commit 679b0c329ece039ff4d851ec1e12e6f1a797dc6a
Author: hiro <hiro at 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 %}
More information about the tor-commits
mailing list