35 lines
1.4 KiB
HTML
35 lines
1.4 KiB
HTML
{% extends "index.html" %}
|
|
|
|
{% block title %}{{ SITENAME }} - {{ category }} category{% endblock %}
|
|
|
|
{% block content_title %}
|
|
<h2>Articles in the {{ category }} category</h2>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<section id="content">
|
|
|
|
<div id="post-list">
|
|
{% for article in articles_page.object_list %}
|
|
|
|
<article class="hentry">
|
|
<div class="entry-content">
|
|
{% if article.category != 'Brews' %}
|
|
<header> <h2 class="entry-title log"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }} | {{ article.date | strftime('%d %B %Y')}}</a></h2> </header>
|
|
{{article.summary}}
|
|
{% else %}
|
|
<header> <h2 class="entry-title log"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> </header>
|
|
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}"><img src="{{SITURL}}/{{article.featured_image}}"></a>
|
|
{{article.summary}}
|
|
{% endif %}
|
|
|
|
</div>
|
|
</article>
|
|
{% endfor %}
|
|
</div>
|
|
<!-- /#posts-list -->
|
|
{% if articles_page.has_other_pages() %}
|
|
{% include 'pagination.html' %}
|
|
{% endif %}
|
|
</section><!-- /#content -->
|
|
{% endblock content %} |