2010-08-17 20:28:51 +02:00
|
|
|
{% extends "base.html" %}
|
2018-07-01 20:32:08 +02:00
|
|
|
{% block html_lang %}{{ article.lang }}{% endblock %}
|
2018-06-13 00:20:55 +00:00
|
|
|
|
2023-10-28 14:24:16 +02:00
|
|
|
{% block title %}{{ SITENAME|striptags }} - {{ article.title|striptags }}{% endblock %}
|
2018-06-13 00:20:55 +00:00
|
|
|
|
2013-08-21 22:58:50 -04:00
|
|
|
{% block head %}
|
2013-10-10 14:29:42 +13:00
|
|
|
{{ super() }}
|
2018-07-05 00:26:50 +02:00
|
|
|
|
2015-08-11 20:03:43 +01:00
|
|
|
{% if article.description %}
|
|
|
|
|
<meta name="description" content="{{article.description}}" />
|
|
|
|
|
{% endif %}
|
2013-08-24 23:36:07 -04:00
|
|
|
|
|
|
|
|
{% for tag in article.tags %}
|
2015-04-08 03:32:48 +02:00
|
|
|
<meta name="tags" content="{{tag}}" />
|
2013-08-24 23:36:07 -04:00
|
|
|
{% endfor %}
|
|
|
|
|
|
2013-08-21 22:58:50 -04:00
|
|
|
{% endblock %}
|
|
|
|
|
|
2012-05-07 12:26:17 +02:00
|
|
|
{% block content %}
|
2024-10-26 00:28:57 +02:00
|
|
|
<article class="prose text-rp-moon-text prose-headings:text-rp-moon-iris md:prose-lg lg:prose-xl">
|
2024-05-31 07:34:01 -05:00
|
|
|
<header>
|
2024-10-21 07:53:36 +02:00
|
|
|
{% if not article.image %}
|
|
|
|
|
<h2>{{ article.title }}</h2>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if article.image %}
|
2024-10-26 00:28:57 +02:00
|
|
|
<div class="not-prose relative overflow-hidden h-[350px] mb-12">
|
2024-10-21 07:53:36 +02:00
|
|
|
<img class="w-full h-full object-cover object-center rounded-lg opacity-65" src="/img/banner/{{ article.image }}" alt="" />
|
2024-10-26 00:28:57 +02:00
|
|
|
<div class="absolute bottom-8 left-0 text-rp-moon-gold">
|
|
|
|
|
<h2>
|
|
|
|
|
<span class="leading-relaxed bg-rp-moon-gold p-2">
|
|
|
|
|
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}" class="no-underline text-rp-moon-overlay">{{ article.title }}</a>
|
|
|
|
|
</span>
|
|
|
|
|
</h2>
|
2024-10-21 07:53:36 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
2024-05-31 07:34:01 -05:00
|
|
|
</header>
|
|
|
|
|
{{ article.content }}
|
|
|
|
|
<footer>
|
|
|
|
|
<p>Published: <time datetime="{{ article.date.isoformat() }}">
|
|
|
|
|
{{ article.locale_date }}
|
|
|
|
|
</time></p>
|
|
|
|
|
{% if article.modified %}
|
|
|
|
|
<p>Last updated: <time datetime="{{ article.modified.isoformat() }}">
|
|
|
|
|
{{ article.locale_modified }}
|
|
|
|
|
</time></p>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if article.authors %}
|
|
|
|
|
<address>
|
|
|
|
|
By {% for author in article.authors %}
|
|
|
|
|
<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</address>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if article.category %}
|
|
|
|
|
<p>
|
|
|
|
|
Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
|
|
|
|
|
</p>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if article.tags %}
|
|
|
|
|
<p>
|
|
|
|
|
Tags:
|
|
|
|
|
{% for tag in article.tags %}
|
2018-06-13 00:20:55 +00:00
|
|
|
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
|
2024-05-31 07:34:01 -05:00
|
|
|
{% endfor %}
|
|
|
|
|
</p>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</footer>
|
2022-01-17 16:11:06 +08:00
|
|
|
</article>
|
2010-08-17 20:28:51 +02:00
|
|
|
{% endblock %}
|