62 lines
1.8 KiB
HTML
62 lines
1.8 KiB
HTML
|
{% 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 %}
|
||
|
<header>
|
||
|
<h1 class="entry-title">
|
||
|
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
|
||
|
title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h1>
|
||
|
{% import 'translations.html' as translations with context %}
|
||
|
{{ translations.translations_for(article) }}
|
||
|
</header>
|
||
|
|
||
|
<footer class="post-info">
|
||
|
<hr class="article-split">
|
||
|
<time class="published" datetime="{{ article.date.isoformat() }}">
|
||
|
<h3>{{ article.locale_date }}</h3>
|
||
|
</time>
|
||
|
{% if article.modified %}
|
||
|
<time class="modified" datetime="{{ article.modified.isoformat() }}">
|
||
|
<h3>{{ article.locale_modified }}</h3>
|
||
|
</time>
|
||
|
{% endif %}
|
||
|
{% if article.tags %}
|
||
|
<div class="tags">
|
||
|
Tags:
|
||
|
{% for tag in article.tags %}
|
||
|
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
|
||
|
{% endfor %}
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
{% if article.category %}
|
||
|
<div class="category">
|
||
|
Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
</footer><!-- /.post-info -->
|
||
|
<hr class="article-split">
|
||
|
<article>
|
||
|
{{ article.content }}
|
||
|
</article>
|
||
|
{% endblock %}
|