mat.services/templates/posts.html

36 lines
1.0 KiB
HTML
Raw Normal View History

2022-08-08 04:31:56 +00:00
{% extends "base.html" %}
{% block main_content %}
{{ post_macros::page_header(title="blog posts") }}
2022-10-19 22:50:46 +00:00
<p>if you want to subscribe to updates, <a href="/atom.xml">an atom feed</a> is available.</p>
2022-08-14 17:05:50 +00:00
<div class="list">
2022-08-08 04:31:56 +00:00
{%- if paginator %}
{%- set show_pages = paginator.pages -%}
{% else %}
{% set section = get_section(path="posts/_index.md") %}
{%- set show_pages = section.pages -%}
{% endif -%}
{{ post_macros::list_posts(pages=show_pages) }}
2022-08-14 17:05:50 +00:00
</div>
{% endblock main_content %}
2022-08-08 04:31:56 +00:00
2022-08-14 17:05:50 +00:00
{% block trailing_content %}
2022-08-08 04:31:56 +00:00
{% if paginator %}
<ul class="pagination">
{% if paginator.previous %}
<span class="page-item page-prev">
2022-10-21 06:32:07 +00:00
<a href={{ paginator.previous | safe }} class="page-link" aria-label="Previous"><span aria-hidden="true">← Prev</span></a>
2022-08-08 04:31:56 +00:00
</span>
{% endif %}
{% if paginator.next %}
<span class="page-item page-next">
2022-10-21 06:32:07 +00:00
<a href={{ paginator.next | safe }} class="page-link" aria-label="Next"><span aria-hidden="true">Next →</span></a>
2022-08-08 04:31:56 +00:00
</span>
{% endif %}
</ul>
{% endif %}
2022-08-14 17:05:50 +00:00
{% endblock trailing_content %}