changed something kek

This commit is contained in:
Speyll
2023-07-04 01:37:44 +01:00
parent ba684522ce
commit 08aa33f6b1
62 changed files with 1350 additions and 652 deletions

25
templates/section.html Normal file
View File

@@ -0,0 +1,25 @@
{% extends "base.html" %}
{% block header %}
<h1>{{ section.title }}</h1>
{% endblock header %}
{% block content %}
{{ section.content | safe }}
{% if paginator %}
{% set pages = paginator.pages %}
{% else %}
{% set pages = section.pages %}
{% endif %}
<ul>
{% for page in pages %}
<li>
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>
</li>
{% endfor %}
</ul>
{% if paginator %}
<div class="metaData">{% 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 %}