2021-01-26 01:49:49 +01:00
|
|
|
{% with title=title or 'Platypush blog', styles=['/css/home.css'] %}
|
|
|
|
{% 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' %}
|