modified contact page for use with standard page template
This commit is contained in:
parent
da478471e9
commit
3fb28c1fd9
@ -4,13 +4,19 @@ date: 2025-02-04 10:20
|
||||
author: Tobias Radloff
|
||||
summary: Schreib mir eine Nachricht.
|
||||
lang: de
|
||||
template: contact
|
||||
template: page
|
||||
slug: kontakt
|
||||
featured_image:
|
||||
- pic: ../images/tr/motif-contact.jpg
|
||||
alt: auf einem Notizbuch schläft ein Kätzchen
|
||||
credit: Vera Curcio | unsplash.com
|
||||
credit_link: https://unsplash.com/@urbanleaf
|
||||
footer_include: includes/contact_form.html
|
||||
|
||||
---
|
||||
|
||||
Hier kannst du mir eine Nachricht schicken. Infos zum Datenschutz findest du [hier]({filename}datenschutz.md).
|
||||
Über dieses Formular kannst du mir eine Nachricht schicken.
|
||||
|
||||
Ich habe auch einen [Newsletter]({filename}newsletter.md). Wenn du ihn abonnierst, bist du immer über meine Neuerscheinungen, Lesungen und andere Neuigkeiten informiert.
|
||||
|
||||
Infos zum Datenschutz findest du [hier]({filename}datenschutz.md).
|
||||
@ -1,28 +0,0 @@
|
||||
{% extends "page.html" %}
|
||||
|
||||
{% block content_all %}
|
||||
<article>
|
||||
|
||||
{% block content_header %}
|
||||
{{ super() }}
|
||||
{% endblock content_header %}
|
||||
|
||||
{% block content_body %}
|
||||
{% if page.featured_image %}
|
||||
{% from 'includes/macros.html' import fi %}
|
||||
{% set i = page.featured_image[0] %}
|
||||
{{ fi(i.pic, i.link, i.text, i.alt, i.credit, i.credit_link) }}
|
||||
{% endif %}
|
||||
|
||||
{% if page.content %}
|
||||
<div class="padded">
|
||||
{{ page.content }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% include "includes/contact_form.html" %}
|
||||
|
||||
{% endblock content_body %}
|
||||
|
||||
</article>
|
||||
{% endblock content_all %}
|
||||
@ -17,6 +17,5 @@
|
||||
<textarea name="nachricht" placeholder="Deine Nachricht" aria-label="Nachricht" rows="5" required></textarea>
|
||||
</label>
|
||||
<input type="submit" value="Nachricht senden" />
|
||||
<input type="reset" value="Zurücksetzen" />
|
||||
</fieldset>
|
||||
</form>
|
||||
@ -39,6 +39,13 @@
|
||||
<footer class="content-footer">
|
||||
{% include page.footer_include %}
|
||||
</footer>
|
||||
{% elif page.footer_includes %} {# plural #}
|
||||
<footer class="content-footer">
|
||||
{% for i in page.footer_includes %}
|
||||
{% include i %}
|
||||
{% if not loop.last %} <hr />{% endif %}
|
||||
{% endfor %}
|
||||
</footer>
|
||||
{% endif %}
|
||||
{% endblock content_footer %}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user