flex/templates/index.html

41 lines
1.3 KiB
HTML
Raw Normal View History

2015-07-19 02:04:01 +02:00
{% extends "base.html" %}
{% block content %}
{% for article in articles_page.object_list %}
<article>
<header>
<h2><a href="{{ SITEURL }}/{{ article.url }}#{{ article.slug }}">{{ article.title }}</a></h2>
<p>
{% trans %}Posted on{% endtrans %} {{ article.locale_date }} {% trans %}in{% endtrans %} <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
{% if article.tags %}
&#8226; {% trans %}Tagged with{% endtrans %}
2015-07-19 02:04:01 +02:00
{% for tag in article.tags %}
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% if not loop.last %},{% endif %}
{% endfor %}
{% endif %}
{% if DISQUS_SITENAME %}
&#8226; <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread">{% trans %}Leave a comment{% endtrans %}</a>
2015-07-19 02:04:01 +02:00
{% endif %}
</p>
</header>
<div>
2016-02-16 01:45:54 +01:00
{% if summarise or article.metadata['summary'] or SUMMARY_MAX_LENGTH %}
2015-07-19 02:04:01 +02:00
{{ article.summary }}
<a class="btn" href="{{ SITEURL }}/{{ article.url }}#{{ article.slug }}">{% trans %}Continue reading{% endtrans %}</a>
2015-07-19 02:04:01 +02:00
{% else %}
{{ article.content }}
{% endif %}
</div>
{% if not loop.last %}
<hr />
{% endif %}
</article>
{% endfor %}
{% include "partial/pagination.html" %}
{% endblock %}
{% block additional_js %}
{% include "partial/disqus_count.html" %}
{% endblock %}