diff --git a/content/pages/datenschutz.md b/content/pages/datenschutz.md index 9105adc..1e763d0 100644 --- a/content/pages/datenschutz.md +++ b/content/pages/datenschutz.md @@ -8,6 +8,7 @@ featured_image: alt: die Abkürzung "DSGVO" vor einem blauem, einem Computerchip nachempfundenen Hintergrund credit: Gerd Altmann | pixabay.com credit_link: https://pixabay.com/users/geralt-9301 +footer_line: Erstellt nach Vorlage des IHK --- ## I. Name und Anschrift des Verantwortlichen diff --git a/theme/static/css/custom.css b/theme/static/css/custom.css index ceab169..f71ac0c 100644 --- a/theme/static/css/custom.css +++ b/theme/static/css/custom.css @@ -400,7 +400,7 @@ figcaption { /* settings for articles */ -#article-body, #page-body { +#content-body, #content-body { overflow: hidden; display: flex; justify-content: space-between; @@ -494,7 +494,7 @@ figcaption { min-width: 300px; } - .wcard-title .tag-content { + .wcard-title, .tag-content { flex: 1 0 calc((100% - (2 * var(--pico-nav-element-spacing-horizontal))) * 0.382); min-width: 185px; display: flex; diff --git a/theme/templates/article.html b/theme/templates/article.html index 9ae62cf..3a435ce 100644 --- a/theme/templates/article.html +++ b/theme/templates/article.html @@ -14,46 +14,57 @@ {% endblock content_header %} {% block content_body %} -
-
- {% if article.content | length is not eq(0) %}{{ article.content }}{% endif %} - {% if article.stats or article.tags %} -
-

Details

-
    - {% if article.stats %} - {% set stats = article.stats %} - {% if stats.reihe is defined %} -
  • aus der Reihe "{{ stats.reihe }}"
  • - {% endif %} - {% if stats.isbn is defined %} -
  • ISBN: {{ stats.isbn }}
  • - {% endif %} - {% if stats.verlag is defined %} -
  • erschienen bei: {{ stats.verlag }}
  • - {% endif %} - {% endif %} - {% if article.tags is defined %} -
  • Schlagworte:
  • - {% endif %} -
+
+
+
+ {% if article.content | length is not eq(0) %} + {{ article.content }} + {% endif %} + {% if article.stats or article.tags %} +
+

Details

+
    + {% if article.stats %} + {% set stats = article.stats %} + {% if stats.reihe is defined %} +
  • aus der Reihe "{{ stats.reihe }}"
  • + {% endif %} + {% if stats.isbn is defined %} +
  • ISBN: {{ stats.isbn }}
  • + {% endif %} + {% if stats.verlag is defined %} +
  • erschienen bei: {{ stats.verlag }}
  • + {% endif %} + {% endif %} + {% if article.tags is defined %} +
  • Schlagworte: + +
  • + {% endif %} +
+
+ {% endif %} +
+
+ {% if article.featured_image is defined %} + {% from 'includes/macros.html' import fi %} + {% set i = article.featured_image[0] %} + {{ fi(i.pic, i.link, i.text, i.title, i.credit, i.credit_link) }} + {% endif %} + {% if article.klappentext %} +

Klappentext

+
{{ article.klappentext }}
+ {% endif %} +
-{% endif %} -
-
- {% if article.featured_image is defined %} - {% from 'includes/macros.html' import fi %} - {% set i = article.featured_image[0] %} - {{ fi(i.pic, i.link, i.text, i.title, i.credit, i.credit_link) }} - {% endif %} - {% if article.klappentext %} -

Klappentext

-
{{ article.klappentext }}
- {% endif %} + {% endblock content_body %} + {% block content_footer %} +
- -{% endblock content_body %} +{% endblock content_footer %} diff --git a/theme/templates/contact.html b/theme/templates/contact.html index 1b4ae1b..39f0de6 100644 --- a/theme/templates/contact.html +++ b/theme/templates/contact.html @@ -1,15 +1,13 @@ -{% 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 %} +{% extends "page.html" %} {% block content_header %}
- {% include "includes/contact_form.html" %} + {% 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 %} {% endblock content_header %} {% block content_body %} {% include + "includes/contact_form.html" %} {% endblock content_body %} {% block + content_footer %}
-{% endblock content_body %} - -{% block content_footer %} {% endblock content_footer %} diff --git a/theme/templates/includes/macros.html b/theme/templates/includes/macros.html index ba9ae67..fd9d87b 100644 --- a/theme/templates/includes/macros.html +++ b/theme/templates/includes/macros.html @@ -8,12 +8,6 @@ {% 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/page.html b/theme/templates/page.html index 5fdc939..114aaa9 100644 --- a/theme/templates/page.html +++ b/theme/templates/page.html @@ -1,7 +1,10 @@ {% extends "base.html" %} -{% block title %}{{ page.title }} - {{ SITENAME }}{% endblock %} -{% block metadesc %}{% if page.summary %}{{ page.summary|e }}{% else %}{{ super() }}{% endif -%}{% endblock %} +{% block title %} + {{ page.title }} - {{ SITENAME }} +{% endblock %} +{% block metadesc %} +{% if page.summary %}{{ page.summary|e }}{% else %}{{ super() }}{% endif %} +{% endblock %} {% block content_header %}
@@ -10,24 +13,30 @@ {% endblock content_header %} {% block content_body %} -
-
+
+
+
{{ page.content }} +
+
+ {% 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.featured_image is defined %} - {% 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 %} -
-
-{% endblock content_body %} + {% endblock content_body %} -{% block content_footer %} -{% if page.footer_line is defined %} -

{{ page.footer_line }}

-{% elif page.footer_include is defined %} -{% include page.footer_include %} -{% endif %} -{% endblock content_footer %} \ No newline at end of file + {% block content_footer %} + {% if page.footer_line %} +
+

{{ page.footer_line }}

+
+ {% elif page.footer_include %} +
+ {% include page.footer_include %} +
+ {% endif %} + {% endblock content_footer %} +
diff --git a/theme/templates/termine.html b/theme/templates/termine.html index 67b6354..69782fe 100644 --- a/theme/templates/termine.html +++ b/theme/templates/termine.html @@ -4,38 +4,43 @@ {% set date_format = "%d.%m." %} {% set time_format = "%H:%M" %} {% block content_body %} - {% if page.featured_image %} +
+{% 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 %} -
- - - - - - - - - {% for t in page.termine %} - - - - - {% endfor %} - - -
Wann & WoWas & Wieso
{{ t.startdate | strftime(date_format) }}{% if t.enddate is defined %}–{{t.enddate | strftime(date_format) }}{% elif t.starttime is defined %} {{ t.starttime | strftime(time_format) }}{% endif %}
{{ t.location }}
-

{{ t.summary }} {% if "Moderation" in t.categories %}(Moderation){%endif%}

- {% if t.description is defined %}

{{ t.description | replace("\n\n", "

") | replace("\n", "
") | replace("


", "

")}}

{% endif %} - {% if t.attach is defined %}

Mehr Infos

{% endif %} -
Letzte Aktualisierung: {{ page.written_at | strftime("%d.%m.%Y, %H:%M Uhr") }}
+ {{ fi(i.pic, i.link, i.text, i.alt, i.credit, i.credit_link) }} +
+{% endif %} +
+ + + + + + + + + {% for t in page.termine %} + + + + + {% endfor %} + +
Wann & WoWas & Wieso
{{ t.startdate | strftime(date_format) }}{% if t.enddate is defined %}–{{t.enddate | strftime(date_format) }}{% elif t.starttime is defined %} {{ t.starttime | strftime(time_format) }}{% endif %}
{{ t.location }}
+

{{ t.summary }} {% if "Moderation" in t.categories %}(Moderation){%endif%}

+ {% if t.description is defined %}

{{ t.description | replace("\n\n", "

") | replace("\n", "
") | replace("


", "

")}}

{% endif %} + {% if t.attach is defined %}

Mehr Infos

{% endif %} +
+
+ {% endblock content_body %} + {% if page.written_at is defined %} + {% block content_footer %} + + {% endblock content_footer %} + {% endif %}
-{% endblock content_body %} - -{% if page.written_at is defined %} -{% block content_footer %} -{% endblock content_footer %} -{% endif %} {% endif %}