most templates now extend page instead of base

This commit is contained in:
eclipse 2025-03-17 18:37:50 +01:00
parent a865c8338a
commit 61f87b6bc1
5 changed files with 18 additions and 7 deletions

View File

@ -1,4 +1,4 @@
{% extends "base.html" %}
{% extends "page.html" %}
{% block content_all %}

View File

@ -1,4 +1,4 @@
{% extends "base.html" %}
{% extends "page.html" %}
{% block content_header %}
{% endblock content_header %}

View File

@ -1,6 +1,7 @@
{% extends "base.html" %}
{% block title %}
{{ page.title }} - {{ SITENAME }}
{{ page.title }} {{ SITENAME }}
{% endblock %}
{% block metadesc %}
{% if page.summary %}{{ page.summary|e }}{% else %}{{ super() }}{% endif %}

View File

@ -1,5 +1,13 @@
{% extends "base.html" %}
{% block title %}
Schlagwort: {{ tag }} - {{ SITENAME }}
{% endblock %}
{% block metadesc %}
Alle Einträge zum Schlagwort '{{ tag }}'
{% endblock %}
{% block content_all %}
{% block content_header %}
<div class="extra-header">
<h1>Schlagwort: {{ tag }}</h1>
@ -27,3 +35,5 @@
{% block content_footer %}
{% endblock content_footer %}
{% endblock content_all %}

View File

@ -1,4 +1,4 @@
{% extends "base.html" %}
{% extends "page.html" %}
{% block content_all%}
@ -16,11 +16,11 @@ original order #}
{% do wcards.append(pages | selectattr("slug", "==", wide_card) | list | first) if pages | selectattr("slug", "==",
wide_card) | list | first %}
{% endfor %}
{# now we can finally iterate over the correct pages (max. 4 pages) #}
{# now we can finally iterate over the correct pages (should be exactly 4 pages so the animation delays work) #}
{% for wcard in wcards[:4] %}
<article class="wcard" style="flex-direction: {{ loop.cycle('row', 'row-reverse') }};">
<div class="wcard-title">
<h2><a href="{{ SITEURL }}/{{ wcard.slug | lower }}/" title="{{ wcard.summary | striptags }}">{{ wcard.title }}</a></h2>
<h2><a href="{{ SITEURL }}/{{ wcard.slug }}/" title="{{ wcard.summary | striptags }}">{{ wcard.title }}</a></h2>
</div>
<div class="wcard-gallery">
{% if wcard.card_images %}