[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit fb87e0da4905ea39fe15e93370072ef0f9ae26b8
Author: hiro <hiro@xxxxxxxxxxxxxx>
Date:   Wed Mar 24 16:21:00 2021 +0100

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

diff --git a/content/training/resources/tor-training/contents.lr b/content/training/resources/tor-training/contents.lr
index a90e145..817cd54 100644
--- a/content/training/resources/tor-training/contents.lr
+++ b/content/training/resources/tor-training/contents.lr
@@ -60,7 +60,8 @@ title: Types of Relays
 ----
 slide-layout: title-slide
 ----
-background-image: /static/images/onion-white.png
+background-image: '/static/images/onion-white.png'
+
 
 #### slide ####
 title: Guard/middle (aka non-exit) relay
@@ -114,7 +115,7 @@ title: Relay requirements
 ----
 slide-layout: title-slide
 ----
-background-image: /static/images/onion-white.png
+background-image: '/static/images/onion-white.png'
 
 
 #### slide ####
@@ -190,7 +191,7 @@ title: Technical setup
 ----
 slide-layout: title-slide
 ----
-background-image: /static/images/onion-white.png
+background-image: '/static/images/onion-white.png'
 
 
 #### slide ####
@@ -313,7 +314,7 @@ title: More about relays
 ----
 slide-layout: title-slide
 ----
-background-image: /static/images/onion-white.png
+background-image: '/static/images/onion-white.png'
 
 
 #### slide ####
@@ -351,7 +352,7 @@ title: Network diversity
 ----
 slide-layout: title-slide
 ----
-background-image: /static/images/onion-white.png
+background-image: '/static/images/onion-white.png'
 
 
 #### slide ####
@@ -374,7 +375,7 @@ title: More about exit relays
 ----
 slide-layout: title-slide
 ----
-background-image: /static/images/onion-white.png
+background-image: '/static/images/onion-white.png'
 
 
 #### slide ####
@@ -402,7 +403,7 @@ title: Running relays with others
 ----
 slide-layout: title-slide
 ----
-background-image: /static/images/onion-white.png
+background-image: '/static/images/onion-white.png'
 
 
 #### slide ####
@@ -452,7 +453,7 @@ title: Bad relays
 ----
 slide-layout: title-slide
 ----
-background-image: /static/images/onion-white.png
+background-image: '/static/images/onion-white.png'
 
 
 #### slide ####
@@ -491,7 +492,7 @@ title: How do I get help running a Tor relay?
 ----
 slide-layout: title-slide
 ----
-background-image: /static/images/onion-white.png
+background-image: '/static/images/onion-white.png'
 
 
 #### slide ####
@@ -515,4 +516,4 @@ PGP FINGERPRINT
 ----
 slide-layout: title-slide
 ----
-background-image: /static/images/onion-white.png
+background-image: '/static/images/onion-white.png'
diff --git a/templates/blocks/slide.html b/templates/blocks/slide.html
index 25d9c23..20d31af 100644
--- a/templates/blocks/slide.html
+++ b/templates/blocks/slide.html
@@ -1,5 +1,5 @@
 {% if this.slide-layout == 'title-slide' %}
-  <section class="title" data-background-color="white" data-background-position="right bottom" data-background-size="3em">
+  <section class="title" data-background-color="white" {% if this.background- image %} data-background-image="{{ this.background-image|asseturl }}" {% endig %} data-background-position="right bottom" data-background-size="3em">
     <h3>{{ this.title }}</h3>
     <hr class="dark" />
     {% if this.subtitle %}



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits