From 4d96bc35fa7ccc97927b4f449d8dfb2ea6510eb5 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 7 Nov 2017 12:51:47 +0100 Subject: [PATCH] custom parser for caretakers email in FAQ data --- _src/_data/faq.yml | 2 +- _src/faq.html | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/_src/_data/faq.yml b/_src/_data/faq.yml index c2f0900..56c01cd 100644 --- a/_src/_data/faq.yml +++ b/_src/_data/faq.yml @@ -60,7 +60,7 @@ - question: Can my organization be a Caretaker? answer: | - Maybe! If you think you’re a good fit, contact us at {{ site.data.contact.email_caretakers }}. + Maybe! If you think you’re a good fit, contact us at !EMAIL_CARETAKERS!. ## Transactions - question: Can I delete a Transaction? diff --git a/_src/faq.html b/_src/faq.html index de70ad3..5da7155 100644 --- a/_src/faq.html +++ b/_src/faq.html @@ -7,6 +7,8 @@ subtitle: Get answers to your most pressing questions css: page-faq --- +{% capture email_caretakers %}{{ site.data.contact.email_caretakers }}{% endcapture %} +
@@ -21,7 +23,7 @@ css: page-faq {% assign id = faq.question | downcase | replace: ' ','-' | replace: '?', '' %}

# {{ faq.question }}

-
{{ faq.answer | markdownify }}
+
{{ faq.answer | replace: '!EMAIL_CARETAKERS!', email_caretakers | markdownify }}
{% endfor %}