From 3fb28c1fd9ae6554c6af38d149e7141e24fd2d17 Mon Sep 17 00:00:00 2001 From: eclipse Date: Tue, 11 Mar 2025 23:05:06 +0100 Subject: [PATCH] modified contact page for use with standard page template --- content/pages/kontakt.md | 10 ++++++-- theme/templates/contact.html | 28 ---------------------- theme/templates/includes/contact_form.html | 1 - theme/templates/page.html | 7 ++++++ 4 files changed, 15 insertions(+), 31 deletions(-) delete mode 100644 theme/templates/contact.html diff --git a/content/pages/kontakt.md b/content/pages/kontakt.md index e600bf5..614c06a 100644 --- a/content/pages/kontakt.md +++ b/content/pages/kontakt.md @@ -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). \ No newline at end of file +Ü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). \ No newline at end of file diff --git a/theme/templates/contact.html b/theme/templates/contact.html deleted file mode 100644 index f47a4ef..0000000 --- a/theme/templates/contact.html +++ /dev/null @@ -1,28 +0,0 @@ -{% extends "page.html" %} - -{% block content_all %} -
- - {% 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 %} -
- {{ page.content }} -
- {% endif %} - - {% include "includes/contact_form.html" %} - - {% endblock content_body %} - -
-{% endblock content_all %} diff --git a/theme/templates/includes/contact_form.html b/theme/templates/includes/contact_form.html index 601a86a..c22ceaf 100644 --- a/theme/templates/includes/contact_form.html +++ b/theme/templates/includes/contact_form.html @@ -17,6 +17,5 @@ - \ No newline at end of file diff --git a/theme/templates/page.html b/theme/templates/page.html index bd0b8b8..bc33e6b 100644 --- a/theme/templates/page.html +++ b/theme/templates/page.html @@ -39,6 +39,13 @@ + {% elif page.footer_includes %} {# plural #} + {% endif %} {% endblock content_footer %}