48 lines
1.4 KiB
HTML
48 lines
1.4 KiB
HTML
<html lang="en">
|
|
<head>
|
|
<link rel="stylesheet" type="text/css" href="/css/common.css">
|
|
<link rel="stylesheet" type="text/css" href="/css/home.css">
|
|
<title>Platypush blog</title>
|
|
</head>
|
|
|
|
<body>
|
|
<header>
|
|
<a href="/">
|
|
<div class="icon"></div>
|
|
<div class="title">PlatyBlog</div>
|
|
</a>
|
|
</header>
|
|
|
|
<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 %}
|
|
|
|
<div class="title">
|
|
{{ page['title'] }}
|
|
</div>
|
|
|
|
{% if page['published'] %}
|
|
<div class="published-date">
|
|
{{ page['published'].strftime('%b %d, %Y') }}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if page['description'] %}
|
|
<div class="description">
|
|
{{ page['description'] }}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</a>
|
|
{% endfor %}
|
|
</div>
|
|
</main>
|
|
</body>
|
|
</html>
|