blog/themes/simple/templates/article.html

63 lines
1.8 KiB
HTML
Raw Permalink Normal View History

2022-11-03 02:55:14 +00:00
{% 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">
2022-11-03 03:36:10 +00:00
{{ article.title }}
</h1>
2022-11-03 02:55:14 +00:00
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(article) }}
2022-11-03 03:36:10 +00:00
<hr class="article-split">
2022-11-03 02:55:14 +00:00
</header>
<footer class="post-info">
2022-11-03 03:36:10 +00:00
<a class="permalink" href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}"> 🔗 </a>
2022-11-03 02:55:14 +00:00
<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">
2022-11-03 03:36:10 +00:00
Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
2022-11-03 02:55:14 +00:00
</div>
{% endif %}
</footer><!-- /.post-info -->
<hr class="article-split">
<article>
{{ article.content }}
</article>
{% endblock %}