[tor-commits] [community/staging] Edit template to understand why this crash

hiro at torproject.org hiro at torproject.org
Wed Mar 24 16:31:23 UTC 2021


commit c5d77c36894504e5d9356b59b425095b5ff53edd
Author: hiro <hiro at torproject.org>
Date:   Wed Mar 24 15:53:09 2021 +0100

    Edit template to understand why this crash
---
 templates/blocks/slide.html | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/templates/blocks/slide.html b/templates/blocks/slide.html
index 809873c..7f8a424 100644
--- a/templates/blocks/slide.html
+++ b/templates/blocks/slide.html
@@ -1,10 +1,14 @@
 {% if this.layout == "title" %}
-<section class="title" data-background-color="white" data-background-image="{{ this.image|asseturl }}" data-background-position="right bottom" data-background-size="3em">
-  <h3>{{ this.title }}</h3>
-  <hr class="dark" />
-  <h4>{{ this.subtitle }}</h4>
-  <h5>{{ this.author }}</h5>
-</section>
+  <section class="title" data-background-color="white" data-background-image="{{ this.image|asseturl }}" data-background-position="right bottom" data-background-size="3em">
+    <h3>{{ this.title }}</h3>
+    <hr class="dark" />
+    {% if this.subtitle %}
+      <h4>{{ this.subtitle }}</h4>
+    {% endif %}
+    {% if this.author %}
+      <h5>{{ this.author }}</h5>
+    {% endif %}
+  </section>
 {% else %}
 <section {% if this.background != "white" %} data-background-color="{{ this.background }}" {% else %} data-background-color="white" {% endif %} >
   <h2>{{ this.title }}</h2>





More information about the tor-commits mailing list