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

[tor-commits] [community/develop] Fix breadcrumbs



commit 6b1fff604fd0af4e5addbb74b61e3a574824e45e
Author: hiro <hiro@xxxxxxxxxxxxxx>
Date:   Thu Sep 12 18:25:30 2019 +0200

    Fix breadcrumbs
---
 content/relay-operations/technical-setup/guard/contents.lr | 2 ++
 templates/breadcrumb.html                                  | 1 +
 templates/macros/parent.html                               | 1 +
 templates/macros/resources.html                            | 9 +--------
 templates/two-columns-page.html                            | 1 +
 5 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/content/relay-operations/technical-setup/guard/contents.lr b/content/relay-operations/technical-setup/guard/contents.lr
index 7cfa3dd..2e4fb97 100644
--- a/content/relay-operations/technical-setup/guard/contents.lr
+++ b/content/relay-operations/technical-setup/guard/contents.lr
@@ -1,5 +1,7 @@
 _model: page
 ---
+color: primary
+---
 title: Middle/Guard relay
 ---
 body: In this guide we describe how to setup a new Middle/Guard relay. Please choose your platform below.
diff --git a/templates/breadcrumb.html b/templates/breadcrumb.html
new file mode 120000
index 0000000..583e450
--- /dev/null
+++ b/templates/breadcrumb.html
@@ -0,0 +1 @@
+../lego/templates/breadcrumb.html
\ No newline at end of file
diff --git a/templates/macros/parent.html b/templates/macros/parent.html
new file mode 120000
index 0000000..14b7799
--- /dev/null
+++ b/templates/macros/parent.html
@@ -0,0 +1 @@
+../../lego/templates/macros/parent.html
\ No newline at end of file
diff --git a/templates/macros/resources.html b/templates/macros/resources.html
deleted file mode 100644
index e632faf..0000000
--- a/templates/macros/resources.html
+++ /dev/null
@@ -1,8 +0,0 @@
-{% macro render_resource(item) %}
-<tr>
-    <td><a href="{{ item|url }}">{{ item.file }}</a></td>
-    <td>{{ item.description }}</td>
-    <td>{{ item.type}}</td>
-    <td>{{ item.date }}</td>
-</tr>
-{% endmacro %}
diff --git a/templates/macros/resources.html b/templates/macros/resources.html
new file mode 120000
index 0000000..fa7524a
--- /dev/null
+++ b/templates/macros/resources.html
@@ -0,0 +1 @@
+../../lego/templates/macros/resources.html
\ No newline at end of file
diff --git a/templates/two-columns-page.html b/templates/two-columns-page.html
index 199a452..a4fa3f6 100644
--- a/templates/two-columns-page.html
+++ b/templates/two-columns-page.html
@@ -1,6 +1,7 @@
 <div class="row pt-5">
   {% include 'sidenav.html' %}
   <div class="col-sm-12 col-xs-12 col-md-8 col-lg-8 mr-auto {{ bag('alternatives', this.alt, 'order') }}">
+    {% include 'breadcrumb.html' %}
     {{ this.body }}
     <div class="row">
     {% for child in this.children|sort(attribute='key') %}



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