diff --git a/content/pages/success.md b/content/pages/success.md index cdc5a22..f2f7add 100644 --- a/content/pages/success.md +++ b/content/pages/success.md @@ -1,5 +1,5 @@ --- -title: "Das hat geklappt" +title: "Das hat geklappt :-)" date: 2025-03-04 23:19 author: Tobias Radloff summary: Ein Arbeitsschritt wurde erfolgreich bewƤltigt. diff --git a/content/php/contact.php b/content/php/contact.php index c6d0a4a..9f34d04 100644 --- a/content/php/contact.php +++ b/content/php/contact.php @@ -19,6 +19,7 @@ $body = [ "Emailadresse: {$_POST['email']}", "Nachricht: {$_POST['nachricht']}" ]; + $mailContents = [ 'subject' => 'Diese Nachricht kam ueber das Kontaktformular von t-r.de', 'bodyText' => implode("\n\n", $body), @@ -32,6 +33,6 @@ try { GracefulExit($errorURL, "{$err}: {$e->getMessage()}"); } -header("Location: {$successURL}"); +// success +GracefulExit($successURL, "Deine Nachricht wurde erfolgreich verschickt und ist jetzt auf dem Weg zu mir."); ?> - diff --git a/theme/static/css/custom.css b/theme/static/css/custom.css index af7c0b7..bade7bf 100644 --- a/theme/static/css/custom.css +++ b/theme/static/css/custom.css @@ -431,12 +431,14 @@ figcaption { } .article-stats { - padding-left: 0; + margin-top: var(--pico-block-spacing-vertical); + + ul { padding-left: 0; li { list-style: none; } - } + }} } diff --git a/theme/templates/article.html b/theme/templates/article.html index 3e6c683..9c186ab 100644 --- a/theme/templates/article.html +++ b/theme/templates/article.html @@ -18,8 +18,9 @@
{{ article.klappentext | e }}+
{{ kt(article.klappentext) }}{% endif %}
elements #} +{% macro kt(text) %} +{% for k in text.strip().split("\n\n") | list %}
{{ k }}
{% endfor %} +{% endmacro %} \ No newline at end of file