Adds simple section page
This commit is contained in:
parent
aa34f7dcd3
commit
a30f5e8b80
1 changed files with 31 additions and 0 deletions
31
templates/section.html
Normal file
31
templates/section.html
Normal 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 %}
|
Loading…
Add table
Reference in a new issue