bots-as-digital-infrapunctures/themes/default/templates/article.html

69 lines
1.8 KiB
HTML
Raw Normal View History

{% extends "base.html" %}
{% block html_lang %}{{ article.lang }}{% endblock %}
{% block title %}{{ SITENAME }} - {{ article.title|striptags }}{% endblock %}
{% block head %}
{{ super() }}
{% import 'translations.html' as translations with context %}
{% if translations.entry_hreflang(article) %}
{{ translations.entry_hreflang(article) }}
{% endif %}
{% if article.description %}
<meta name="description" content="{{article.description}}" />
{% endif %}
{% for tag in article.tags %}
<meta name="tags" content="{{tag}}" />
{% endfor %}
{% endblock %}
{% block content %}
<section id="content" class="body">
<header>
<h2 class="entry-title">{{ article.title }}</h2>
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(article) }}
</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">
{% 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>
{% else %}
<li class="none">NO PREV (tmp)</li>
{% 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>
{% endif %}
</ul>
</section>
{% endblock %}