manymanymany-varia-websites/themes/cetcat/templates/index.html

42 lines
1.4 KiB
HTML
Raw Normal View History

2017-07-06 14:28:42 +02:00
{% extends "base.html" %}
{% block content %}
2017-10-20 15:59:16 +02:00
<section id="content" class="index">
2017-07-06 14:28:42 +02:00
{% block content_title %}
{% endblock %}
{% if articles_page.has_other_pages() %}
{% include 'pagination.html' %}
2017-07-06 14:28:42 +02:00
{% endif %}
<div id="post-list">
{% for article in articles_page.object_list %}
<article class="hentry">
<div class="article-info">
<span class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></span>
</div>
2017-10-20 15:59:16 +02:00
<div class="summary">{{ article.summary }} <span><a href="{{ SITEURL }}/{{ article.url }}">read more</a></span></div>
2017-07-06 14:28:42 +02:00
<div class="separator"><hr></div>
<div class="post-info">
<time class="published" datetime="{{ article.date.isoformat() }}">
<sup>published on {{ article.locale_date }}</sup>
</time>
{% if article.category %}
<div class="categories">
<span itemprop="articleSection">
2017-09-14 23:40:20 +02:00
<a href="{{ SITEURL }}/{{ article.category.url }}" rel="category">{{ article.category }}</a>
</span>
</div>
{% endif %} {% if article.tags %}
<div class="tags">
Tags: {% for tag in article.tags %}
<span itemprop="keywords">
<a href="{{ SITEURL }}/{{ tag.url }}" rel="tag">{{ tag }}</a>
</span> {% endfor %}
</div>
{% endif %}
</div>
2017-07-06 14:28:42 +02:00
</article>
{% endfor %}
</div><!-- /#posts-list -->
</section><!-- /#content -->
{% endblock content %}