[tor-commits] [donate-static/staging] Create new layout.html template

gus at torproject.org gus at torproject.org
Mon Jun 28 20:08:15 UTC 2021


commit 796bca69392e5b0821d8cae892dce531412f3359
Author: kez <kez at torproject.org>
Date:   Tue Jun 22 10:06:37 2021 -0400

    Create new layout.html template
---
 templates/layout.html | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/templates/layout.html b/templates/layout.html
index f83df290..b0163d4e 100644
--- a/templates/layout.html
+++ b/templates/layout.html
@@ -1,16 +1,14 @@
 {% include 'meta.html' %}
+<body>
   <div class="page pt-4">
     {% include 'header.html' %}
     <div class="container-fluid">
       <div class="row flex-xl-nowrap">
         {% set locale = bag('alternatives', this.alt) %}
         <main role="main" class="mx-auto col-12 {{ locale.order }} {{ locale.direction }}">
-          {% if this.section_id != 'donate' %}
-          <div class="container py-3 mt-5 content">
-            {{ this.body }}
-          </div>
-          {% endif %}
-          {% include this.html %}
+          {% if this.section_id != 'donate' %}<div class="container py-3 mt-5 content">{% endif %}
+            {% block content %}{% endblock %}
+          {% if this.section_id != 'donate' %}</div>{% endif %}
         </main>
       </div>
     </div>





More information about the tor-commits mailing list