2015-07-19 02:04:01 +02:00
{% extends "base.html" %}
2015-07-20 04:34:54 +02:00
{% block meta %}
< meta name = "author" content = "{{ article.author.name }}" / >
2017-04-22 08:41:39 +02:00
< meta name = "description" content = "{{ article.summary|striptags|escape }}" / >
< meta name = "keywords" content = "{{ article.tags|join(', ')|escape }}" >
2024-10-15 14:12:11 +02:00
{% if PLUGINS and 'pelican.plugins.activitypub' in PLUGINS %}< link rel = "alternate" type = "application/activity+json" href = "{{ SITEURL }}/activitypub/posts/{{ article.slug }}" > {% endif %}
2019-10-27 16:21:23 +01:00
{% if article.translations -%}
< link rel = "alternate" href = "{{ SITEURL }}/{{ article.url }}" hreflang = "{{ article.lang }}" / >
{% for a in article.translations %}
< link rel = "alternate" href = "{{ SITEURL }}/{{ a.url }}" hreflang = "{{ a.lang }}" / >
{% endfor %}
{% endif %}
2015-07-20 04:34:54 +02:00
{% include "partial/og_article.html" %}
2015-07-19 02:04:01 +02:00
{% endblock %}
2017-04-22 08:41:39 +02:00
{% block title %} – {{ article.title|striptags|escape }}{% endblock %}
2015-07-19 02:04:01 +02:00
{% block content %}
2016-09-14 05:04:22 +02:00
< article class = "single" >
2015-07-19 02:04:01 +02:00
< header >
2017-04-23 01:16:33 +02:00
{% if not ARTICLE_HIDE_TRANSLATION %}
{% import 'partial/translations.html' as translations with context %}
{{ translations.translations_for(article) }}
{% endif %}
2015-07-22 06:26:35 +02:00
< h1 id = "{{ article.slug }}" > {{ article.title }}< / h1 >
2016-08-10 19:28:32 +02:00
< 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
2020-08-28 04:11:25 +02:00
{% if PLUGINS and 'post_stats' in PLUGINS %}
2020-04-21 15:58:12 +02:00
• {{ _('%(minutes)s min read', minutes=article.stats['read_mins']) }}
2016-08-11 04:20:35 +02:00
{% endif %}
2016-08-10 19:28:32 +02:00
< / p >
2015-07-19 02:04:01 +02:00
< / header >
2016-11-08 01:13:43 +01:00
{% if GOOGLE_ADSENSE and GOOGLE_ADSENSE.ads.article_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.article_top }}">< / ins >
< script >
(adsbygoogle = window.adsbygoogle || []).push({});
< / script >
{% endif %}
2015-07-19 02:04:01 +02:00
< div >
{{ article.content }}
< / div >
< div class = "tag-cloud" >
< p >
{% if article.tags %}
{% for tag in article.tags %}
< a href = "{{ SITEURL }}/{{ tag.url }}" > {{ tag }}< / a >
{% endfor %}
{% endif %}
< / p >
< / div >
2016-08-11 04:20:35 +02:00
2015-07-22 06:26:35 +02:00
{% if ADD_THIS_ID %}
< div class = "center social-share" >
2016-08-10 19:28:32 +02:00
< p > {{ _('Like this article? Share it with your friends!') }}< / p >
2015-07-22 06:26:35 +02:00
< div class = "addthis_native_toolbox" > < / div >
< div class = "addthis_sharing_toolbox" > < / div >
2017-02-24 13:06:49 +01:00
< div class = "addthis_inline_share_toolbox" > < / div >
2015-07-22 06:26:35 +02:00
< / div >
{% endif %}
2016-08-11 04:20:35 +02:00
2017-04-22 08:54:50 +02:00
{% include "partial/neighbors.html" %}
2016-02-13 01:58:47 +01:00
{% if article.related_posts %}
2016-02-22 19:32:50 +01:00
< div class = "related-posts" >
2016-08-11 04:20:35 +02:00
< h4 > {{ _('You might enjoy') }}< / h4 >
< ul class = "related-posts" >
2016-02-13 01:58:47 +01:00
{% for related_post in article.related_posts %}
< li > < a href = "{{ SITEURL }}/{{ related_post.url }}" > {{ related_post.title }}< / a > < / li >
{% endfor %}
< / ul >
2016-02-22 19:32:50 +01:00
< / div >
2018-02-24 14:59:51 +01:00
{% elif ADD_THIS_ID %}
< div class = "addthis_relatedposts_inline" > < / div >
2016-02-13 01:58:47 +01:00
{% endif %}
2016-08-11 04:20:35 +02:00
2021-10-13 21:02:27 +02:00
{% if article.series %}
< div class = "related-posts" >
{% set text = SERIES_TEXT|default('Part %(index)s of the %(name)s series') %}
< h4 > {{ text|format(index=article.series.index, name=article.series.name) }}< / h4 >
{% if article.series.all_previous %}
< h5 > Previous articles< / h5 >
< ul >
{% for article in article.series.all_previous %}
< li > < a href = "{{ SITEURL }}/{{ article.url }}" > {{ article.title }}< / a > < / li >
{% endfor %}
< / ul >
{% endif %}
{% if article.series.all_next %}
< h5 > Next articles< / h5 >
< ul >
{% for article in article.series.all_next %}
< li > < a href = "{{ SITEURL }}/{{ article.url }}" > {{ article.title }}< / a > < / li >
{% endfor %}
< / ul >
{% endif %}
< / div >
{% endif %}
2016-11-08 01:13:43 +01:00
{% if GOOGLE_ADSENSE and GOOGLE_ADSENSE.ads.article_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.article_bottom }}">< / ins >
< script >
(adsbygoogle = window.adsbygoogle || []).push({});
< / script >
{% endif %}
2015-07-19 02:04:01 +02:00
{% include "partial/disqus.html" %}
2020-03-30 08:19:17 +02:00
{% include "partial/isso.html" %}
2015-07-19 02:04:01 +02:00
< / article >
{% endblock %}