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

[tor-commits] [tpo/staging] Edit templates



commit da57303aca0137221557334e223aef23518ab2d8
Author: hiro <hiro@xxxxxxxxxxxxxx>
Date:   Tue Mar 26 16:43:19 2019 +0100

    Edit templates
---
 content/about/sponsors/Internews/contents.lr    | 2 ++
 content/about/sponsors/individuals/contents.lr  | 2 +-
 content/about/sponsors/internews-eu/contents.lr | 2 ++
 templates/people.html                           | 8 ++++----
 templates/press.html                            | 8 ++++----
 templates/reports.html                          | 8 ++++----
 templates/sponsors.html                         | 8 ++++----
 7 files changed, 21 insertions(+), 17 deletions(-)

diff --git a/content/about/sponsors/Internews/contents.lr b/content/about/sponsors/Internews/contents.lr
index 3f34388..f8bc7ce 100644
--- a/content/about/sponsors/Internews/contents.lr
+++ b/content/about/sponsors/Internews/contents.lr
@@ -6,4 +6,6 @@ time: 2008-2013
 ---
 name: Internews
 ---
+_hidden: yes
+---
 link:
diff --git a/content/about/sponsors/individuals/contents.lr b/content/about/sponsors/individuals/contents.lr
index 1b56a33..2b17e14 100644
--- a/content/about/sponsors/individuals/contents.lr
+++ b/content/about/sponsors/individuals/contents.lr
@@ -12,7 +12,7 @@ logo: /static/images/sponsors/artwork.png
 ---
 _hidden: yes
 ---
-link: https://www.torproject.org/donate/donate.html.en
+link: https://donate.torproject.org
 ---
 description:
 
diff --git a/content/about/sponsors/internews-eu/contents.lr b/content/about/sponsors/internews-eu/contents.lr
index 73e695c..62aeb23 100644
--- a/content/about/sponsors/internews-eu/contents.lr
+++ b/content/about/sponsors/internews-eu/contents.lr
@@ -6,4 +6,6 @@ time: 2006 - 2008
 ---
 name: Internews Europe
 ---
+_hidden: yes
+---
 link:
diff --git a/templates/people.html b/templates/people.html
index db2f117..207f451 100644
--- a/templates/people.html
+++ b/templates/people.html
@@ -4,8 +4,8 @@
 <div class="container-fluid">
   <div class="row">
     {% from "macros/people.html" import render_board %}
-    {% set items = this.children %}
-    {% for item in items.filter(F.role == 'board') %}
+    {% set items = site.query('/about/people').include_undiscoverable(true).filter(F.role == 'board') %}
+    {% for item in items %}
       {{ render_board(item, this.alt) }}
     {% endfor %}
   </div>
@@ -16,8 +16,8 @@
 <div class="container-fluid">
   <div class="row">
     {% from "macros/people.html" import render_core %}
-    {% set items = this.children %}
-    {% for item in items.filter(F.role == 'core') %}
+    {% set items = site.query('/about/people').include_undiscoverable(true).filter(F.role == 'core') %}
+    {% for item in items %}
       {{ render_core(item, this.alt) }}
     {% endfor %}
   </div>
diff --git a/templates/press.html b/templates/press.html
index 61f9707..4f8a48e 100644
--- a/templates/press.html
+++ b/templates/press.html
@@ -43,8 +43,8 @@
 <div class="container col-10">
   <div class="row">
     {% from "macros/press.html" import render_release %}
-    {% set items = this.children %}
-    {% for item in items.filter(F.type == "release") %}
+    {% set items = site.query('/press').include_undiscoverable(true).filter(F.type == "release") %}
+    {% for item in items %}
       {{ render_release(item, this.alt) }}
     {% endfor %}
   </div>
@@ -65,8 +65,8 @@
   </thead>
   <tbody>
     {% from "macros/press.html" import render_snippet %}
-    {% set items = this.children %}
-    {% for item in items.filter(F.type == "snippet") %}
+    {% set items = site.query('/press').include_undiscoverable(true).filter(F.type == "snippet") %}
+    {% for item in items %}
       {{ render_snippet(item, this.alt) }}
     {% endfor %}
   </tbody>
diff --git a/templates/reports.html b/templates/reports.html
index 97a5ffc..14f4150 100644
--- a/templates/reports.html
+++ b/templates/reports.html
@@ -5,8 +5,8 @@
   <table class="table">
   <tbody>
     {% from "macros/reports.html" import render_document %}
-    {% set items = this.children %}
-    {% for item in items.filter(F.type == "document") %}
+    {% set items = site.query('/about/reports').include_undiscoverable(true).filter(F.type == "document")%}
+    {% for item in items %}
       {{ render_document(item, this.alt) }}
     {% endfor %}
   </tbody>
@@ -27,8 +27,8 @@
   </thead>
   <tbody>
     {% from "macros/reports.html" import render_report %}
-    {% set items = this.children %}
-    {% for item in items.filter(F.type == "report") %}
+    {% set items = site.query('/about/reports').include_undiscoverable(true).filter(F.type == "report")%}
+    {% for item in items %}
       {{ render_report(item, this.alt) }}
     {% endfor %}
   </tbody>
diff --git a/templates/sponsors.html b/templates/sponsors.html
index fd36c99..b0c93b0 100644
--- a/templates/sponsors.html
+++ b/templates/sponsors.html
@@ -7,8 +7,8 @@
 <div class="fluid-container">
   <div class="row">
     {% from "macros/sponsors.html" import render_active %}
-    {% set items = this.children %}
-    {% for item in items.filter(F.active == True) %}
+    {% set items = site.query('/about/sponsors').include_undiscoverable(true).filter(F.active == True) %}
+    {% for item in items %}
       {{ render_active(item, this.alt) }}
     {% endfor %}
   </div>
@@ -20,8 +20,8 @@
 <div class="row">
   <div class="col-12">
     <ul class="jobs-ul">
-      {% set items = this.children %}
-      {% for item in items.filter(F.active == False) %}
+      {% set items = site.query('/about/sponsors').include_undiscoverable(true).filter(F.active == False) %}
+      {% for item in items %}
         <li><a href="{{ item.link}}">{{ item.name }}</a> - <span> {{ item.time }}</span></li>
       {% endfor %}
     </ul>



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