example-blog/template/page_template.html
Minecon724 d2983eed09
Update for page templates
Signed-off-by: Minecon724 <git@m724.eu>
2025-03-12 19:26:30 +01:00

41 lines
No EOL
1.4 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>
<h1>{{ site.name }} - page {{ page.current }}</h1>
{% for article in articles %}
<a href="article/{{ article.slug }}.html" class="article-short">
<article>
<header>
<p class="title">{{ article.title }}</p>
<p class="description">{{ article.summary }}</p>
</header>
</article>
</a>
{% endfor %}
{% if not page.isFirstPage %}
<p>First page: <a href="{{ url_to_page(1) }}">1 (click to go)</a></p>
<p>Previous page: <a href="{{ url_to_page(page.previous) }}">{{ page.previous }} (click to go)</a></p>
{% else %}
<p>This is the first page</p>
{% endif %}
<p><strong>This is page {{ page.current }}</strong></p>
{% if not page.isLastPage %}
<p>Next page: <a href="{{ url_to_page(page.next) }}">{{ page.next }} (click to go)</a></p>
<p>Last page: <a href="{{ url_to_page(page.last) }}">{{ page.last }} (click to go)</a></p>
{% else %}
<p>This is the last page</p>
{% endif %}
</body>
</html>