blog/templates/index.html

38 lines
1.1 KiB
HTML
Raw Normal View History

{% with title=title or 'Platypush blog', skip_header=False, styles=['/css/home.css'] %}
2021-01-26 01:49:49 +01:00
{% include 'common-head.html' %}
{% endwith %}
2021-01-24 23:24:49 +01:00
2021-01-26 01:49:49 +01:00
<main>
<div class="articles">
{% for page in pages %}
<a class="article" href="{{ page['uri'] }}">
<div class="container">
{% if page['image'] %}
<div class="image">
<img src="{{ page['image'] }}" alt="">
</div>
{% endif %}
2021-01-24 23:24:49 +01:00
2021-01-26 01:49:49 +01:00
<div class="title">
{{ page['title'] }}
</div>
2021-01-24 23:24:49 +01:00
2021-01-26 01:49:49 +01:00
{% if page['published'] %}
<div class="published-date">
{{ page['published'].strftime('%b %d, %Y') }}
</div>
{% endif %}
2021-01-24 23:24:49 +01:00
2021-01-26 01:49:49 +01:00
{% if page['description'] %}
<div class="description">
{{ page['description'] }}
2021-01-24 23:24:49 +01:00
</div>
2021-01-26 01:49:49 +01:00
{% endif %}
</div>
</a>
{% endfor %}
</div>
</main>
{% include 'common-tail.html' %}