big overhaul

This commit is contained in:
speyll
2025-04-09 16:09:59 +01:00
parent ae125d2bc6
commit 9af0a02acd
32 changed files with 517 additions and 410 deletions

View File

@@ -1,25 +1,19 @@
{% extends "base.html" %}
{% block content %}
<h1>{{ section.title }}</h1>
<section class="content-section">
<h1>{{ section.title }}</h1>
{{ section.content | safe }}
{{ section.content | safe }}
<ul class="content-list">
{# Use paginator if it exists, else regular pages #}
{% for page in paginator.pages | default(value=section.pages) %}
{% include "partials/content-listing-item.html" %}
{% endfor %}
</ul>
{% if paginator %}
{% set pages = paginator.pages %}
{% else %}
{% set pages = section.pages %}
{% endif %}
<ul class="title-list">
{% for page in pages %}
<li>
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>
</li>
{% endfor %}
</ul>
{% if paginator %}
<div class="accent-data">{% if paginator.previous %}<a href="{{ paginator.first }}"></a> &nbsp <a href="{{ paginator.previous }}"><</a>{% endif %} &nbsp {{ paginator.current_index }} / {{ paginator.number_pagers }} &nbsp {% if paginator.next %}<a href="{{ paginator.next }}">></a> &nbsp <a href="{{ paginator.last }}"></a>{% endif %}</div>
{% endif %}
{% endblock content %}
{% if paginator %}
{% include "partials/pagination.html" %}
{% endif %}
</section>
{% endblock %}