Adds simple section page

This commit is contained in:
DKFN 2019-10-05 18:04:28 +02:00
parent aa34f7dcd3
commit a30f5e8b80

31
templates/section.html Normal file
View file

@ -0,0 +1,31 @@
{% extends "index.html" %}
{% import "post_macros.html" as post_macros %}
{% import "index_macros.html" as index_macros %}
{% block content %}
<!-- START NAV -->
{% block header %}
{{ super() }}
{% endblock header %}
<!-- END NAV -->
<main>
{{ index_macros::hero(title=section.extra.zulma_title, primary=true) }}
<section class="container">
<div class="columns is-desktop">
<div class="column is-10-desktop is-offset-1-desktop">
{% if paginator %}
{{ index_macros::list_articles(pages=paginator.pages) }}
{% else %}
{{ index_macros::list_articles(pages=section.pages) }}
{% endif %}
<!-- END ARTICLE FEED -->
<!-- START PAGINATION -->
{% if paginator %}
{{ index_macros::paginate(paginator=paginator) }}
{% endif %}
<!-- END PAGINATION -->
</div>
</div>
</section>
</main>
{% endblock content %}