[tor-commits] [lego/master] Add a header_description block to the header template

gus at torproject.org gus at torproject.org
Fri Jul 9 20:30:33 UTC 2021


commit 0da4637ee0b51f26cd8e5ac6ecbe57b5bb8e4da3
Author: kez <kez at torproject.org>
Date:   Fri Jul 2 14:58:00 2021 -0400

    Add a header_description block to the header template
    
    This makes it easier to write flexible templates for contents.lr files written in markdown
---
 templates/header.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/header.html b/templates/header.html
index ce9bb9b..24fdbc3 100644
--- a/templates/header.html
+++ b/templates/header.html
@@ -38,7 +38,7 @@
           {% else %}
           <div class="row header-description">
           {% endif %}
-            {{ this.header_description }}
+            {% block header_description %}{{ this.header_description }}{% endblock %}
           </div>
         </div>
         {% endif %}





More information about the tor-commits mailing list