blog/themes/solarized/templates/article.html

65 lines
1.9 KiB
HTML
Raw 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 %}
2023-08-24 18:50:41 +00:00
<a class="pill-link" href="{{ SITEURL }}/{{ tag.url }}">
<span class="tag-pill">{{ tag }}</span>
</a>
2022-11-03 02:55:14 +00:00
{% endfor %}
</div>
{% endif %}
{% if article.category %}
<div class="category">
2023-08-24 18:50:41 +00:00
Category: <a class="pill-link" href="{{ SITEURL }}/{{ article.category.url }}"> <span class="category category-pill">{{ article.category }}</span> </a>
2022-11-03 02:55:14 +00:00
</div>
{% endif %}
</footer><!-- /.post-info -->
<hr class="article-split">
<article>
{{ article.content }}
</article>
{% endblock %}