m724.eu/template/index_template.html
Minecon724 51b11323bc
All checks were successful
/ deploy (push) Successful in 13s
an article doesn't need a photo
2025-01-22 16:20:29 +01:00

44 lines
No EOL
1.5 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{{ site.name }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="{{ static('style.css') }}">
</head>
<body>
<div id="page-content">
<div style="margin-top: 30vh;"></div>
{% if articles[0].custom.containsKey("photo") %}
<img id="current-blurred" src="{{ asset(articles[0].custom.photo) }}">
{% endif %}
{% for article in articles %}
<a href="post/{{ article.slug }}.html" class="post-short">
<article>
<header>
<p class="title">
{{ article.title }}
{% if article.draft %}
<small>DRAFT</small>
{% endif %}
</p>
<p class="description">{{ article.summary }}</p>
</header>
{% if article.custom.containsKey("photo") %}
<img class="front-image" src="{{ asset(article.custom.photo) }}">
{% endif %}
</article>
</a>
{% endfor %}
</div>
<div id="footer">
<p>Content on m724.eu is licensed under <a href="https://creativecommons.org/licenses/by-nc/4.0" target="_blank" rel="license noopener noreferrer">CC BY-NC 4.0</a></p>
</div>
</body>
</html>