[tor-commits] [donate-static/staging] Move the monthly giving page to markdown

kez at torproject.org kez at torproject.org
Fri Jul 9 20:54:18 UTC 2021


commit 03b157744905bd8150cd418583c99c95765b3f2c
Author: kez <kez at torproject.org>
Date:   Fri Jul 2 14:52:36 2021 -0400

    Move the monthly giving page to markdown
    
    Change the donate-form model to markdown so that the field renders correctly
    
    See: tpo/web/donate-static#37
---
 content/monthly-giving/contents.lr | 19 ++++++++++---------
 models/donate-form.ini             |  2 +-
 templates/monthly-giving.html      |  6 ++++++
 3 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/content/monthly-giving/contents.lr b/content/monthly-giving/contents.lr
index 93bc3d37..3610e392 100644
--- a/content/monthly-giving/contents.lr
+++ b/content/monthly-giving/contents.lr
@@ -10,18 +10,19 @@ section_id: donate
 ---
 title: Defenders of Privacy
 ---
-_template: donate-form.html
+_template: monthly-giving.html
 ---
 intro:
 
-<div class="fixed-width col-7 mx-auto">
-  <p></p>
-  <p>Become a Defender of Privacy!</p>
-  <p>Join the Tor Project - Defenders of Privacy program - a monthly giving circle designed to honor donors that make privacy a priority.</p>
-  <p>Defenders of Privacy pledge a modest amount each month - creating a steady, reliable source of funds to help us be agile in an ever-changing privacy landscape and we send you exclusive gifts to show our appreciation!</p>
-  <p>The Tor Project counts on the support of our Defenders of Privacy to continue our mission to provide tools that protect people's privacy and identity online. With your help, we will make the Tor network accessible to everyone!</p>
-  <p>Together, we will stand up for the universal right to privacy. Please make your monthly donation now and stand with the Tor Project at this critical time.</p>
-</div>
+Become a Defender of Privacy!
+
+Join the Tor Project - Defenders of Privacy program - a monthly giving circle designed to honor donors that make privacy a priority.
+
+Defenders of Privacy pledge a modest amount each month - creating a steady, reliable source of funds to help us be agile in an ever-changing privacy landscape and we send you exclusive gifts to show our appreciation!
+
+The Tor Project counts on the support of our Defenders of Privacy to continue our mission to provide tools that protect people's privacy and identity online. With your help, we will make the Tor network accessible to everyone!
+
+Together, we will stand up for the universal right to privacy. Please make your monthly donation now and stand with the Tor Project at this critical time.
 ---
 monthly_five: 10000
 ---
diff --git a/models/donate-form.ini b/models/donate-form.ini
index 66e1beed..6f4fb642 100644
--- a/models/donate-form.ini
+++ b/models/donate-form.ini
@@ -16,7 +16,7 @@ choice_labels = Single, Monthly
 
 [fields.intro]
 label = Intro
-type = html
+type = markdown
 
 [fields.title]
 label = Title
diff --git a/templates/monthly-giving.html b/templates/monthly-giving.html
new file mode 100644
index 00000000..b5b35efa
--- /dev/null
+++ b/templates/monthly-giving.html
@@ -0,0 +1,6 @@
+{% extends "donate-form.html" %}
+{% block donate_form_intro %}
+<div class="fixed-width col-7 mx-auto">
+  {{ this.intro }}
+</div>
+{% endblock %}





More information about the tor-commits mailing list