diff --git a/content/images/tr/motif-contact.jpg b/content/images/tr/motif-contact.jpg new file mode 100644 index 0000000..a82a3f0 Binary files /dev/null and b/content/images/tr/motif-contact.jpg differ diff --git a/content/pages/index.md b/content/pages/index.md index 8c9bc56..9680f43 100644 --- a/content/pages/index.md +++ b/content/pages/index.md @@ -12,10 +12,10 @@ index_cards: credit: Matthew Jungling | unsplash.com credit_link: https://unsplash.com/@matthewjungling link: termine/ - alt: Lesungen und Lesereihen + alt: Lesungen und Lesereihen - pic: images/neues/motif-coffee.jpg link: neues/ - alt: Neuerscheinungen, Ankündigungen etc. + alt: Aktuelles und Neuigkeiten - pic: images/tr/portrait-tr-cutout.png link: ueber-mich/ alt: "\"ich bin Schriftsteller / und heiß' Tobias Radloff / untenrum Cargohosen / obenrum 'nen Kahlkopf\"" diff --git a/content/pages/kontakt.md b/content/pages/kontakt.md index 4e027a1..3398a9a 100644 --- a/content/pages/kontakt.md +++ b/content/pages/kontakt.md @@ -4,8 +4,13 @@ date: 2025-02-04 10:20 author: Tobias Radloff summary: Schreib mir eine Nachricht. lang: de -template: page +template: contact slug: kontakt -footer_include: includes/contact_form.html +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 --- +Hier kannst du mir eine Nachricht schicken. \ No newline at end of file diff --git a/content/pages/lyrik.md b/content/pages/lyrik.md index 9a844f4..9b917d0 100644 --- a/content/pages/lyrik.md +++ b/content/pages/lyrik.md @@ -10,11 +10,11 @@ card_selector_key: category card_selector_value: Lyrik card_images: - pic: images/lyrik/cover-haunted-are-these-houses.jpg - link: lyrik/haunted-are-these-houses.html + link: lyrik/nine.html alt: Haunted are these Houses y_offset: 30% - pic: images/lyrik/cover-the-bangor-literary-journal-issue-3.jpg - link: lyrik/the-bangor-literary-journal.html + link: lyrik/served.html alt: The Bangor Literary Journal y_offset: 0% - pic: images/lyrik/cover-slam-poetry-aus-brandenburg.jpg diff --git a/theme/static/css/custom.css b/theme/static/css/custom.css index ba756eb..1973564 100644 --- a/theme/static/css/custom.css +++ b/theme/static/css/custom.css @@ -462,6 +462,11 @@ figcaption { } +.tag-image img { + height: var(--tr-card-height); +} + + /* settings for slide shows on wide cards */ /* see https://www.smashingmagazine.com/2012/04/pure-css3-cycling-slideshow/ */ .wcard { @@ -469,12 +474,12 @@ figcaption { flex-flow: wrap; column-gap: calc(var(--pico-nav-element-spacing-horizontal) * 2); - .wcard-gallery { + .wcard-gallery, .tag-image { flex: 1 0 calc((100% - (2 * var(--pico-nav-element-spacing-horizontal))) * 0.618); min-width: 300px; } - .wcard-title { + .wcard-title .tag-content { flex: 1 0 calc((100% - (2 * var(--pico-nav-element-spacing-horizontal))) * 0.382); min-width: 185px; display: flex; @@ -547,7 +552,6 @@ figcaption { } @keyframes image-slide { - 0%, 31% { left: -100%; diff --git a/theme/templates/contact.html b/theme/templates/contact.html new file mode 100644 index 0000000..1b4ae1b --- /dev/null +++ b/theme/templates/contact.html @@ -0,0 +1,15 @@ +{% extends "page.html" %} + +{% block content_body %} +{% if page.featured_image %} + {% from 'includes/macros.html' import pi %} + {% set i = page.featured_image[0] %} + {{ pi(i.pic, i.link, i.text, i.alt, i.credit, i.credit_link) }} +{% endif %} +
+ {% include "includes/contact_form.html" %} +
+{% endblock content_body %} + +{% block content_footer %} +{% endblock content_footer %} diff --git a/theme/templates/includes/macros.html b/theme/templates/includes/macros.html index 3fedf53..ba9ae67 100644 --- a/theme/templates/includes/macros.html +++ b/theme/templates/includes/macros.html @@ -1,4 +1,4 @@ -{# output a featured image #} +{# output a featured image for an article #} {% macro fi(pic, link='', alt='', title='', credit='', credit_link='') %} {% endmacro %} +{# output a featured image for a page #} +{% macro pi(pic, link='', alt='', title='', credit='', credit_link='') %} +
{{ fi(pic, link, text, alt, credit, credit_link) }}
+{% endmacro %} + + {# output a card image #} {% macro ci(pic, link='', alt='', title='', credit='', credit_link='') %}
diff --git a/theme/templates/index.html b/theme/templates/index.html index d04399d..2592904 100644 --- a/theme/templates/index.html +++ b/theme/templates/index.html @@ -14,5 +14,4 @@ {% endfor %} {% endfor %} {% include "includes/subscribe.html" %} -{% include "includes/unsubscribe.html" %} {% endblock content_body %} diff --git a/theme/templates/tag.html b/theme/templates/tag.html index 6e9dbb7..bbbcee1 100644 --- a/theme/templates/tag.html +++ b/theme/templates/tag.html @@ -9,9 +9,9 @@ {% block content_body %} {% from 'includes/macros.html' import ci %} {% for article in articles %} -
+
-

{{ article.title }}

+

{{ article.title }}

{{ article.summary }}
diff --git a/theme/templates/termine.html b/theme/templates/termine.html index 01e53e0..67b6354 100644 --- a/theme/templates/termine.html +++ b/theme/templates/termine.html @@ -4,7 +4,7 @@ {% set date_format = "%d.%m." %} {% set time_format = "%H:%M" %} {% block content_body %} - {% if page.featured_image is defined %} + {% 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) }}