1
0
mirror of https://github.com/ipdb/website.git synced 2024-12-27 23:27:45 +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?
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
- question: Can I delete a Transaction?

View File

@ -7,6 +7,8 @@ subtitle: Get answers to your most pressing questions
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">
<div class="row row--narrow">
@ -21,7 +23,7 @@ css: page-faq
{% assign id = faq.question | downcase | replace: ' ','-' | replace: '?', '' %}
<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 %}
</div>