[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [community/master] Update user-research section to include hidden content
commit c7309bc6e56a51d5e648fc7990671b2d589de1e6
Author: hiro <hiro@xxxxxxxxxxxxxx>
Date: Mon Oct 21 17:37:44 2019 +0200
Update user-research section to include hidden content
---
content/user-research/become-tester/contents.lr | 4 +---
content/user-research/contents.lr | 2 ++
content/user-research/guidelines/contents.lr | 4 +---
content/user-research/open/contents.lr | 4 ++--
lego | 2 +-
templates/two-columns-page.html | 2 +-
templates/user-research.html | 4 ++--
7 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/content/user-research/become-tester/contents.lr b/content/user-research/become-tester/contents.lr
index 7025245..46b41fb 100644
--- a/content/user-research/become-tester/contents.lr
+++ b/content/user-research/become-tester/contents.lr
@@ -8,8 +8,6 @@ subtitle: We regularly release Tor Browser Alpha versions to allow users to test
---
key: 1
---
-_template: layout.html
----
-html: two-columns-page.html
+_hidden: yes
---
body:
diff --git a/content/user-research/contents.lr b/content/user-research/contents.lr
index 2ad1aeb..e6fb45d 100644
--- a/content/user-research/contents.lr
+++ b/content/user-research/contents.lr
@@ -21,3 +21,5 @@ body:
## We respect our users' privacy when we conduct research.
We practice human-centered design when we build tools for internet freedom. The way we build tools also builds community. Our user research is founded on the premises of consent, respect, and empathy. You can make an impact in your community by learning from our methods and helping us with user research.
+---
+_discoverable: yes
diff --git a/content/user-research/guidelines/contents.lr b/content/user-research/guidelines/contents.lr
index a036343..0958fe9 100644
--- a/content/user-research/guidelines/contents.lr
+++ b/content/user-research/guidelines/contents.lr
@@ -8,12 +8,10 @@ title: User Research Guidelines
---
subtitle: We collect only necessary data to improve our services.
---
-hide: yes
+_hidden: yes
---
key: 3
---
-html: two-columns-page.html
----
body:
Congrats! You're going to run your first User Research for Tor - and we are delighted to have you on board!
diff --git a/content/user-research/open/contents.lr b/content/user-research/open/contents.lr
index c1f5c1a..252fbea 100644
--- a/content/user-research/open/contents.lr
+++ b/content/user-research/open/contents.lr
@@ -12,9 +12,9 @@ title: Open User Research
---
subtitle: We put our users in the center of our development process. That is how we bring privacy-enhancing technology to the ones who more need it. Explore what we are working on and start to run user research with your local community.
---
-key: 2
+_hidden: yes
---
-html: two-columns-page.html
+key: 2
---
body:
These are our current needs for testing Tor products, as well as methodologies and testing scripts. Before running Tor user research, be sure you read our [Guidelines to becoming a user researcher with Tor](https://community.torproject.org/user-research/guidelines).
diff --git a/lego b/lego
index 09c5813..a2e8d34 160000
--- a/lego
+++ b/lego
@@ -1 +1 @@
-Subproject commit 09c5813e895e67104dbdcf15bfec66367bd11790
+Subproject commit a2e8d340105281a2b7bbfe422a17f72e402ee1a8
diff --git a/templates/two-columns-page.html b/templates/two-columns-page.html
index 5151905..3c6832b 100644
--- a/templates/two-columns-page.html
+++ b/templates/two-columns-page.html
@@ -6,7 +6,7 @@
<div class="col-sm-12 col-xs-12 col-md-8 col-lg-8 pt-3 mr-auto {{ bag('alternatives', this.alt, 'order') }}">
{{ this.body }}
<div class="row">
- {% for child in this.children|sort(attribute='key') %}
+ {% for child in this.children.include_hidden(true)|sort(attribute='key') %}
<div class="col-sm-6 col-md-6 col-sm-12 col-xl-6 py-3">
<div class="card h-100">
<div class="card-body">
diff --git a/templates/user-research.html b/templates/user-research.html
index e12fa62..7d6bd13 100644
--- a/templates/user-research.html
+++ b/templates/user-research.html
@@ -8,13 +8,13 @@
</div>
</div>
<div class="row">
- {% for child in this.children|sort(attribute='key') %}
+ {% for child in site.query(this.path).include_undiscoverable(true)|sort(attribute='key') %}
<div class="col-sm-6 col-md-6 col-sm-12 col-xl-6 py-3">
<div class="card h-100">
<div class="card-body">
<div class="card-body">
<h4 class="card-title text-primary">
- <a href="{{ child.path|url(alt=this.alt) }}">{{ _(child.title) }}</a>
+ {{ _(child.title) }}
</h4>
<p class="card-text">{{ _(child.subtitle) }}</p>
</div>
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits