[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tpo/develop] Style templates, try some content
commit eb63d0df72d857f72782d9d73ed0213c94885a74
Author: Antonela <hola@xxxxxxxxxxx>
Date: Fri May 22 09:50:49 2020 -0300
Style templates, try some content
https://trac.torproject.org/projects/tor/ticket/31660
---
content/new-release/90/contents.lr | 49 +++++++++++++++++++++++++++
content/new-release/{95a12 => 95}/contents.lr | 4 +--
content/new-release/contents.lr | 4 +--
templates/new-release.html | 6 ++--
templates/new-releases.html | 12 ++-----
5 files changed, 59 insertions(+), 16 deletions(-)
diff --git a/content/new-release/90/contents.lr b/content/new-release/90/contents.lr
new file mode 100644
index 00000000..0a83e97b
--- /dev/null
+++ b/content/new-release/90/contents.lr
@@ -0,0 +1,49 @@
+section: What is new
+---
+template: layout.html
+---
+html: new-release.html
+---
+color: primary
+---
+title: Tor Browser 9.0
+---
+body:
+
+# H1
+## H2
+### H3
+Bold **bold text**
+Italic *italicized text*
+Blockquote > blockquote
+Ordered List 1. First item
+2. Second item
+3. Third item
+Unordered List - First item
+- Second item
+- Third item
+Code `code`
+Horizontal Rule ---
+Link [title](https://www.example.com)
+Image ![alt text](image.jpg)
+| Syntax | Description |
+| ----------- | ----------- |
+| Header | Title |
+| Paragraph | Text |
+Fenced Code Block ```
+{
+ "firstName": "John",
+ "lastName": "Smith",
+ "age": 25
+}
+```
+Footnote Here's a sentence with a footnote. [^1]
+
+[^1]: This is the footnote.
+Heading ID ### My Great Heading {#custom-id}
+Definition List term
+: definition
+Strikethrough ~~The world is flat.~~
+Task List - [x] Write the press release
+- [ ] Update the website
+- [ ] Contact the media
diff --git a/content/new-release/95a12/contents.lr b/content/new-release/95/contents.lr
similarity index 97%
rename from content/new-release/95a12/contents.lr
rename to content/new-release/95/contents.lr
index db2ef594..feb6aa22 100644
--- a/content/new-release/95a12/contents.lr
+++ b/content/new-release/95/contents.lr
@@ -1,4 +1,4 @@
-section: Tor Browser
+section: What is new
---
template: layout.html
---
@@ -6,7 +6,7 @@ html: new-release.html
---
color: primary
---
-title: What is new in Tor Browser 9.5
+title: Tor Browser 9.5
---
body:
diff --git a/content/new-release/contents.lr b/content/new-release/contents.lr
index b8a3b526..aa5a5921 100644
--- a/content/new-release/contents.lr
+++ b/content/new-release/contents.lr
@@ -1,4 +1,4 @@
-section: Tor Browser
+section: What is new
---
template: layout.html
---
@@ -6,6 +6,6 @@ html: new-releases.html
---
color: primary
---
-title: Releases log for Tor Browser
+title: Tor Browser
---
body:
diff --git a/templates/new-release.html b/templates/new-release.html
index 99dcff1e..f695b54b 100644
--- a/templates/new-release.html
+++ b/templates/new-release.html
@@ -2,9 +2,9 @@
<div class="container py-3 mt-5 content">
<div class="col-sm-9">
- {% block body %}
- {{ this.body }}
- {% endblock %}
+ {% for item in this.children %}
+ <a href="{{ item.path|url }}">{{ item.title }}</a>
+ {% endfor %}
</div>
<div class="card mt-5">
<ul class="list-group list-group-flush">
diff --git a/templates/new-releases.html b/templates/new-releases.html
index 53f18c10..8dddc024 100644
--- a/templates/new-releases.html
+++ b/templates/new-releases.html
@@ -4,17 +4,11 @@
<div class="container py-3 mt-5 content">
<div class="col-sm-9">
{% for item in this.children %}
- <a href="{{ item.path|url }}">{{ item.title }}</a>
+ <div class="card w-100 p-3 my-3">
+ <a href="{{ item.path|url }}">{{ item.title }}</a>
+ </div>
{% endfor %}
</div>
- <div class="card mt-5">
- <ul class="list-group list-group-flush">
- <!--li class="list-group-item"><a><span class="card-text text-muted">{{ _("Contributors to this page:") }} <a href="#" title="#">cypherpunk</a></span></li-->
- <li class="list-group-item">
- <a href="{{ this.parent|url }}">{{ _("Back to previous page: ") }}{{ this.parent.title }}</a> - <a href="https://github.com/torproject/community/edit/master/content{{ this.path }}/contents.lr">{{ _("Edit this page") }}</a>
- </li>
- </ul>
- </div>
</div>
</div>
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits