homebrewserver.club/themes/homebrewtheme/templates/article.html
2019-08-17 00:25:27 +02:00

50 lines
1.4 KiB
HTML

{% extends "base.html" %}
{% block head %}
{{ super() }}
{% if article.description %}
<meta name="description" content="{{article.description}}" />
{% endif %}
{% if article.tags or article.category or article.keywords %}
<meta name="keywords" content="{{ [article.tags|join(', '), article.category, article.keywords]|join(', ') }}" />
{% endif %}
{% endblock %}
{% block content %}
<section id="content" class="body">
<header>
<div class="entry-title">
<span>{{ article.title }}</span></div>
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(article) }}
<div class="post-info">
<!-- <div class='summary'>{{ article.summary }}</div> -->
<time class="published" datetime="{{ article.date.isoformat() }}">
{{ article.locale_date }}
</time>
{% if article.modified %}
<time class="modified" datetime="{{ article.modified.isoformat() }}">
{{ article.locale_modified }}
</time>
{% endif %}
{% if article.authors %}
<address class="vcard author">
By {% for author in article.authors %}
<a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
{% endfor %}
</address>
{% endif %}
</div><!-- /.post-info -->
{% if article.toc %}
{{ article.toc }}
{% endif %}
<div class="entry-content">
{{ article.content }}
</div><!-- /.entry-content -->
</section>
{% endblock %}