1
0
mirror of https://github.com/ipdb/website.git synced 2024-11-26 11:38:59 +01:00

custom parser for caretakers email in FAQ data

This commit is contained in:
Matthias Kretschmann 2017-11-07 12:51:47 +01:00
parent 7186af0c01
commit 4d96bc35fa
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 4 additions and 2 deletions

View File

@ -60,7 +60,7 @@
- question: Can my organization be a Caretaker? - question: Can my organization be a Caretaker?
answer: | answer: |
Maybe! If you think youre a good fit, contact us at {{ site.data.contact.email_caretakers }}. Maybe! If you think youre a good fit, contact us at !EMAIL_CARETAKERS!.
## Transactions ## Transactions
- question: Can I delete a Transaction? - question: Can I delete a Transaction?

View File

@ -7,6 +7,8 @@ subtitle: Get answers to your most pressing questions
css: page-faq css: page-faq
--- ---
{% capture email_caretakers %}<a href="mailto:{{ site.data.contact.email_caretakers }}">{{ site.data.contact.email_caretakers }}</a>{% endcapture %}
<section class="section section--faq"> <section class="section section--faq">
<div class="row row--narrow"> <div class="row row--narrow">
@ -21,7 +23,7 @@ css: page-faq
{% assign id = faq.question | downcase | replace: ' ','-' | replace: '?', '' %} {% assign id = faq.question | downcase | replace: ' ','-' | replace: '?', '' %}
<h1 class="faq__question" id="{{ id }}"><a class="header-link" href="#{{ id }}">#</a> {{ faq.question }}</h1> <h1 class="faq__question" id="{{ id }}"><a class="header-link" href="#{{ id }}">#</a> {{ faq.question }}</h1>
<div class="faq__answer">{{ faq.answer | markdownify }}</div> <div class="faq__answer">{{ faq.answer | replace: '!EMAIL_CARETAKERS!', email_caretakers | markdownify }}</div>
{% endfor %} {% endfor %}
</div> </div>