premier commit
This commit is contained in:
45
templates/listing.html
Normal file
45
templates/listing.html
Normal file
@ -0,0 +1,45 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
{% for article in articles_page.object_list %}
|
||||
<article>
|
||||
<h1>
|
||||
{{ article.title }}
|
||||
</h1>
|
||||
<p>
|
||||
{{ article.subtitle }}<br/>
|
||||
{{ article.description }} <br/>
|
||||
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">Lire la suite…</a>
|
||||
</p>
|
||||
</article>
|
||||
{% endfor %}
|
||||
{% endblock content %}
|
||||
|
||||
{% if articles_page.has_other_pages() %}
|
||||
{% if DEFAULT_PAGINATION %}
|
||||
{% block pagination %}
|
||||
{% set first_page = articles_paginator.page(1) %}
|
||||
{% set last_page = articles_paginator.page(articles_paginator.num_pages) %}
|
||||
{% if articles_paginator.num_pages >1 %}
|
||||
<nav class="pagination">
|
||||
<a href="{{ SITEURL }}/{{ first_page.url }}"
|
||||
{%- if articles_page.has_previous() %}
|
||||
{%- else %}class="hidden"{% endif %}>
|
||||
<i class="fa fa-angle-double-left"></i></a>
|
||||
<a href="{{ SITEURL }}/{{ articles_previous_page.url }}"
|
||||
{%- if articles_page.has_previous() %}
|
||||
{%- else %}class="hidden"{% endif %}>
|
||||
<i class="fa fa-angle-left"></i></a>
|
||||
<p><strong>{{ category }}{{ tag }}</strong> | {{ articles_page.number }} de {{ articles_paginator.num_pages }}</p>
|
||||
<a href="{{ SITEURL }}/{{ articles_next_page.url }}"
|
||||
{%- if articles_page.has_next() %}
|
||||
{%- else %}class="hidden"{% endif %}>
|
||||
<i class="fa fa-angle-right"></i></a>
|
||||
<a href="{{ SITEURL }}/{{ last_page.url }}"
|
||||
{%- if articles_page.has_next() %}
|
||||
{%- else %}class="hidden"{% endif %}>
|
||||
<i class="fa fa-angle-double-right"></i></a>
|
||||
</nav>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% endif %}
|
||||
{% endif %}
|
Reference in New Issue
Block a user