2020-09-04 18:11:26 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% block html_lang %}{{ article.lang }}{% endblock %}
|
|
|
|
|
|
|
|
{% block title %}{{ SITENAME }} - {{ article.title|striptags }}{% endblock %}
|
|
|
|
|
|
|
|
{% block head %}
|
2020-09-18 16:09:50 +02:00
|
|
|
{{ super() }}
|
2020-09-04 18:11:26 +02:00
|
|
|
|
2020-09-18 16:09:50 +02:00
|
|
|
{% import 'translations.html' as translations with context %}
|
|
|
|
{% if translations.entry_hreflang(article) %}
|
|
|
|
{{ translations.entry_hreflang(article) }}
|
|
|
|
{% endif %}
|
2020-09-04 18:11:26 +02:00
|
|
|
|
2020-09-18 16:09:50 +02:00
|
|
|
{% if article.description %}
|
|
|
|
<meta name="description" content="{{article.description}}" />
|
|
|
|
{% endif %}
|
2020-09-04 18:11:26 +02:00
|
|
|
|
2020-09-18 16:09:50 +02:00
|
|
|
{% for tag in article.tags %}
|
|
|
|
<meta name="tags" content="{{tag}}" />
|
|
|
|
{% endfor %}
|
2020-09-04 18:11:26 +02:00
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<section id="content" class="body">
|
2020-09-18 16:09:50 +02:00
|
|
|
<header>
|
|
|
|
<h2 class="entry-title">
|
|
|
|
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
|
2020-09-04 18:11:26 +02:00
|
|
|
{% import 'translations.html' as translations with context %}
|
|
|
|
{{ translations.translations_for(article) }}
|
2020-09-18 16:09:50 +02:00
|
|
|
</header>
|
|
|
|
<footer class="post-info">
|
|
|
|
{% if article.category %}
|
|
|
|
<div class="category">
|
|
|
|
Part of: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% if article.tags %}
|
|
|
|
<div class="tags">
|
|
|
|
Tags:
|
|
|
|
{% for tag in article.tags %}
|
|
|
|
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</footer>
|
|
|
|
<div class="entry-content">
|
|
|
|
{{ article.content }}
|
|
|
|
</div>
|
|
|
|
|
2020-09-18 16:34:23 +02:00
|
|
|
<ul class="navprevnext">
|
2020-09-18 16:09:50 +02:00
|
|
|
{% if article.prev_article_in_category %}
|
2020-09-18 16:34:23 +02:00
|
|
|
<a href="{{ SITEURL }}/{{ article.prev_article_in_category.url}}">
|
|
|
|
<li class="prev">{{ article.prev_article_in_category.title }}</li>
|
|
|
|
</a>
|
2020-09-18 16:51:29 +02:00
|
|
|
{% else %}
|
|
|
|
<li class="none">NO PREV (tmp)</li>
|
2020-09-18 16:09:50 +02:00
|
|
|
{% endif %}
|
|
|
|
{% if article.next_article_in_category %}
|
2020-09-18 16:34:23 +02:00
|
|
|
<a href="{{ SITEURL }}/{{ article.next_article_in_category.url}}">
|
|
|
|
<li class="next">{{ article.next_article_in_category.title }}</li>
|
|
|
|
</a>
|
|
|
|
{% else %}
|
|
|
|
<li class="done">You finished this section!</li>
|
2020-09-18 16:09:50 +02:00
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
|
2020-09-04 18:11:26 +02:00
|
|
|
</section>
|
|
|
|
{% endblock %}
|