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 }}" />
|
|
|
|
<meta name="description" content="{{ article.summary|striptags }}" />
|
|
|
|
<meta name="keywords" content="{{ article.tags|join(', ') }}">
|
|
|
|
{% include "partial/og_article.html" %}
|
2015-07-19 02:04:01 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
2016-01-31 16:44:14 +01:00
|
|
|
{% block title %} – {{ article.title|striptags }}{% 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>
|
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
|
|
|
|
|
|
|
{% if 'post_stats' in PLUGINS %}
|
|
|
|
• {{ article.stats['read_mins'] }} min read
|
|
|
|
{% endif %}
|
2016-08-10 19:28:32 +02:00
|
|
|
</p>
|
2015-07-19 02:04:01 +02:00
|
|
|
</header>
|
|
|
|
<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>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2016-08-11 04:20:35 +02:00
|
|
|
|
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>
|
2016-02-13 01:58:47 +01:00
|
|
|
{% endif %}
|
2016-08-11 04:20:35 +02:00
|
|
|
|
2015-07-19 02:04:01 +02:00
|
|
|
{% include "partial/disqus.html" %}
|
2016-11-30 10:11:35 +01:00
|
|
|
{% include "partial/duoshuo.html" %}
|
2015-07-19 02:04:01 +02:00
|
|
|
</article>
|
|
|
|
{% endblock %}
|