2015-07-19 02:04:01 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block content %}
|
2016-11-08 01:13:43 +01:00
|
|
|
|
|
|
|
{% if GOOGLE_ADSENSE and GOOGLE_ADSENSE.ads.index_top %}
|
|
|
|
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
|
|
|
<ins class="adsbygoogle ads-responsive"
|
|
|
|
data-ad-client="{{ GOOGLE_ADSENSE.ca_id }}"
|
|
|
|
data-ad-slot="{{ GOOGLE_ADSENSE.ads.index_top }}"></ins>
|
|
|
|
<script>
|
|
|
|
(adsbygoogle = window.adsbygoogle || []).push({});
|
|
|
|
</script>
|
|
|
|
{% endif %}
|
|
|
|
|
2015-07-19 02:04:01 +02:00
|
|
|
{% for article in articles_page.object_list %}
|
|
|
|
<article>
|
|
|
|
<header>
|
|
|
|
<h2><a href="{{ SITEURL }}/{{ article.url }}#{{ article.slug }}">{{ article.title }}</a></h2>
|
|
|
|
<p>
|
2016-08-12 02:05:34 +02:00
|
|
|
{{ _('Posted on %(when)s in %(category)s',
|
|
|
|
when=article.locale_date,
|
|
|
|
category='<a href="%s/%s">%s</a>'|format(SITEURL, article.category.url, article.category)|safe) }}
|
2016-08-11 04:20:35 +02:00
|
|
|
|
2016-08-25 02:56:04 +02:00
|
|
|
{% if article.tags and not HOME_HIDE_TAGS %}
|
|
|
|
• {{ _('Tagged with') }}
|
|
|
|
{% for tag in article.tags %}
|
|
|
|
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% if not loop.last %},{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
|
2016-08-11 04:20:35 +02:00
|
|
|
{% if 'post_stats' in PLUGINS %}
|
|
|
|
• {{ article.stats['read_mins'] }} min read
|
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 }}
|
2016-08-11 04:20:35 +02:00
|
|
|
<br>
|
2016-08-10 19:28:32 +02:00
|
|
|
<a class="btn" href="{{ SITEURL }}/{{ article.url }}#{{ article.slug }}">{{ _('Continue reading') }}</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" %}
|
2016-11-08 01:13:43 +01:00
|
|
|
|
|
|
|
{% if GOOGLE_ADSENSE and GOOGLE_ADSENSE.ads.index_bottom %}
|
|
|
|
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
|
|
|
<ins class="adsbygoogle ads-responsive"
|
|
|
|
data-ad-client="{{ GOOGLE_ADSENSE.ca_id }}"
|
|
|
|
data-ad-slot="{{ GOOGLE_ADSENSE.ads.index_bottom }}"></ins>
|
|
|
|
<script>
|
|
|
|
(adsbygoogle = window.adsbygoogle || []).push({});
|
|
|
|
</script>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
2015-07-19 02:04:01 +02:00
|
|
|
{% endblock %}
|