flex/templates/article.html

54 lines
1.5 KiB
HTML
Raw Normal View History

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 %}
{% block title %} &ndash; {{ article.title|striptags }}{% endblock %}
2015-07-19 02:04:01 +02:00
{% block content %}
<article>
<header>
2015-07-22 06:26:35 +02:00
<h1 id="{{ article.slug }}">{{ article.title }}</h1>
2015-07-19 02:04:01 +02:00
<p>Posted on {{ article.locale_date }} in <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></p>
</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>
2015-07-22 06:26:35 +02:00
{% if ADD_THIS_ID %}
<div class="center social-share">
<p>Like this article? Share it with your friends!</p>
<div class="addthis_native_toolbox"></div>
<div class="addthis_sharing_toolbox"></div>
</div>
{% endif %}
{% if article.related_posts %}
2016-02-22 19:32:50 +01:00
<div class="related-posts">
<h4>Related posts:</h4>
<ul>
{% 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>
{% endif %}
2015-07-19 02:04:01 +02:00
{% include "partial/disqus.html" %}
</article>
{% endblock %}
2015-07-20 04:34:54 +02:00
{% block additional_js %}
{% include "partial/jsonld_article.html" %}
{% endblock %}