[community/master] create additional slide templates for image slides

commit cf4d538942e7b678c9b2aaa3b4907621562e524b Author: kez <kez@torproject.org> Date: Sun Jun 13 10:38:07 2021 -0400 create additional slide templates for image slides --- templates/blocks/slide.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/templates/blocks/slide.html b/templates/blocks/slide.html index 2d89823..33d42e1 100644 --- a/templates/blocks/slide.html +++ b/templates/blocks/slide.html @@ -9,6 +9,22 @@ <h5>{{ this.author }}</h5> {% endif %} </section> +{% elif this.slide_layout == "image_left" %} + <section class="slide-image-left" {% if this.background != "white" %} data-background-color="{{ this.background }}" {% else %} data-background-color="white" {% endif %} > + <h2>{{ this.title }}</h2> + {% if this.image %} + <div style="display: inline-block; vertical-align: top; width: 46%; text-align: center;"><img data-src="{{ this.image }}"></div> + {% endif %} + {{ this.description }} + </section> +{% elif this.slide_layout == "image_right" %} + <section class="slide-image-right" {% if this.background != "white" %} data-background-color="{{ this.background }}" {% else %} data-background-color="white" {% endif %} > + <h2>{{ this.title }}</h2> + {{ this.description }} + {% if this.image %} + <div style="display: inline-block; vertical-align: top; width: 46%; text-align: center;"><img data-src="{{ this.image }}"></div> + {% endif %} + </section> {% else %} <section {% if this.background != "white" %} data-background-color="{{ this.background }}" {% else %} data-background-color="white" {% endif %} > <h2>{{ this.title }}</h2>
participants (1)
-
gus@torproject.org