1
0
mirror of https://github.com/ipdb/website.git synced 2024-11-22 09:36:52 +01:00

Merge pull request #36 from ipdb/fix/24

Custom parser for caretakers email in FAQ data
This commit is contained in:
Matthias Kretschmann 2017-11-07 13:34:05 +01:00 committed by GitHub
commit 7970e66a48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>