rsspls.7bit.org/templates/section.html

37 lines
948 B
HTML
Raw Normal View History

{% import "_macros.html" as macros %}
{% extends "index.html" %}
2024-03-10 04:31:33 +00:00
{% block title %}{{ section.title }} - {{ config.title }} {% endblock title %}
{% block header %}
<header class="box-shadow">
{{ macros::render_header() }}
</header>
{% endblock header %}
{% block content %}
2024-03-10 04:31:33 +00:00
<h1 class="heading-text">{{ section.description }}</h1>
{{ section.content | safe }}
2024-03-10 04:31:33 +00:00
{% for page in paginator.pages %}
<article>
<h2><a href="{{ page.permalink }}">{{ page.title }}</a></h2>
<time datetime="{{ page.date }}">{{ page.date | date(format="%d %B %Y") }}</time>
<div>
{{ page.summary | safe }}
</div>
</article>
{% endfor %}
<nav class="pagination">
{% if paginator.previous %}
<a class="previous" href="{{ paginator.previous }}"> Previous</a>
{% endif %}
{% if paginator.next %}
<a class="next" href="{{ paginator.next }}">Next </a>
{% endif %}
</nav>
{% endblock content %}