[tor-commits] [community/staging] Edit model and block plus templates. Layout is maybe a reserved field?

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


commit 5d6a1ec8fd3700a9c0710721c93761f684c1a075
Author: hiro <hiro at torproject.org>
Date:   Wed Mar 24 16:04:04 2021 +0100

    Edit model and block plus templates. Layout is maybe a reserved field?
---
 content/training/resources/tor-training/contents.lr | 2 ++
 flowblocks/slide.ini                                | 2 +-
 templates/blocks/slide.html                         | 2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/content/training/resources/tor-training/contents.lr b/content/training/resources/tor-training/contents.lr
index 1b7018f..6f15492 100644
--- a/content/training/resources/tor-training/contents.lr
+++ b/content/training/resources/tor-training/contents.lr
@@ -58,3 +58,5 @@ By running a Tor relay you can help make the Tor network:
 #### slide ####
 title: Types of Relays
 ----
+slide-layout: title
+----
diff --git a/flowblocks/slide.ini b/flowblocks/slide.ini
index 06d1075..7466391 100644
--- a/flowblocks/slide.ini
+++ b/flowblocks/slide.ini
@@ -22,7 +22,7 @@ label = Background color
 type = string
 translate = False
 
-[fields.layout]
+[fields.slide-layout]
 label = Slide layout
 type = string
 translate = False
diff --git a/templates/blocks/slide.html b/templates/blocks/slide.html
index 7f8a424..108b2ee 100644
--- a/templates/blocks/slide.html
+++ b/templates/blocks/slide.html
@@ -1,4 +1,4 @@
-{% if this.layout == "title" %}
+{% if this.slide-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" />





More information about the tor-commits mailing list