blog/templates/article.html

44 lines
1.1 KiB
HTML
Raw Normal View History

{% with title=title or 'Platypush blog', skip_header=skip_header, styles=['/css/blog.css', '/css/code.css'] %}
2021-01-26 01:49:49 +01:00
{% include 'common-head.html' %}
{% endwith %}
2021-01-24 20:39:27 +01:00
2021-01-26 01:49:49 +01:00
<main>
<div class="container">
{% if not skip_header %}
2021-01-31 01:07:26 +01:00
<div class="title">
<h1>{{ title }}</h1>
</div>
2021-01-24 23:24:49 +01:00
2021-01-31 01:07:26 +01:00
{% if description %}
<div class="description">
<h3>{{ description }}</h3>
</div>
{% endif %}
2021-01-24 23:24:49 +01:00
2021-01-31 01:07:26 +01:00
{% if published %}
<div class="published-date">
Published
{% if author %} by
{% if author_email %}
<a href="mailto:{{ author_email }}">
{% endif %}
2021-01-31 00:04:24 +01:00
2021-01-31 01:07:26 +01:00
{{ author }}
2021-01-31 00:04:24 +01:00
2021-01-31 01:07:26 +01:00
{% if author_email %}
</a>
{% endif %}
2021-01-31 00:04:24 +01:00
{% endif %}
2021-01-31 01:07:26 +01:00
on {{ published }}
</div>
2021-01-31 00:04:24 +01:00
{% endif %}
{% endif %}
2021-01-24 20:39:27 +01:00
2021-01-26 01:49:49 +01:00
<div class="content">
{{ content | safe }}
2021-01-24 20:39:27 +01:00
</div>
2021-01-26 01:49:49 +01:00
</div>
</main>
{% include 'common-tail.html' %}