2016-04-01 10:37:01 +00:00
|
|
|
{% extends "base.html" %}
|
2015-09-08 04:23:32 +00:00
|
|
|
{% load i18n thumbnail %}{% spaceless %}
|
|
|
|
|
|
|
|
{% block canonical_url %}<link rel="canonical" href="{{ SITE.domain }}{{ view.get_view_url }}"/>{% endblock canonical_url %}
|
|
|
|
|
|
|
|
{% block content_blog %}
|
|
|
|
<section class="blog-list">
|
|
|
|
{% block blog_title %}
|
|
|
|
<header>
|
|
|
|
</header>
|
|
|
|
{% endblock %}
|
|
|
|
{% for post in post_list %}
|
2015-09-26 19:08:14 +00:00
|
|
|
{% include "glarus_blog/includes/blog_item.html" with post=post image="true" TRUNCWORDS_COUNT=TRUNCWORDS_COUNT %}
|
2015-09-08 04:23:32 +00:00
|
|
|
{% empty %}
|
2015-09-26 19:08:14 +00:00
|
|
|
<p class="blog-empty text-center lead">{% trans "No article found." %}</p>
|
2015-09-08 04:23:32 +00:00
|
|
|
{% endfor %}
|
|
|
|
{% if author or archive_date or tagged_entries %}
|
|
|
|
<p class="blog-back"><a href="{% url 'djangocms_blog:posts-latest' %}">{% trans "Back" %}</a></p>
|
|
|
|
{% endif %}
|
|
|
|
{% if is_paginated %}
|
|
|
|
<nav class="{% firstof css_grid instance.css_grid %} pagination">
|
2015-09-26 19:08:14 +00:00
|
|
|
{% if page_obj.has_previous %}
|
|
|
|
<a href="?{{ view.page_kwarg }}={{ page_obj.previous_page_number }}">« {% trans "previous" %}</a>
|
|
|
|
{% endif %}
|
|
|
|
<span class="current">
|
|
|
|
{% trans "Page" %} {{ page_obj.number }} {% trans "of" %} {{ paginator.num_pages }}
|
|
|
|
</span>
|
|
|
|
{% if page_obj.has_next %}
|
|
|
|
<a href="?{{ view.page_kwarg }}={{ page_obj.next_page_number }}">{% trans "next" %} »</a>
|
|
|
|
{% endif %}
|
2015-09-08 04:23:32 +00:00
|
|
|
</nav>
|
|
|
|
{% endif %}
|
|
|
|
</section>
|
|
|
|
{% endblock %}
|
2016-04-01 10:37:01 +00:00
|
|
|
{% endspaceless %}
|