2024-08-10 21:01:49 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% import "article.html.macro" as article_macro %}
|
2024-08-10 08:24:22 +02:00
|
|
|
|
2024-08-10 21:01:49 +02:00
|
|
|
{% block head %}
|
|
|
|
{{ super() }}
|
|
|
|
<meta property="og:title" content="{{ username }}' blog" />
|
|
|
|
<meta property="og:description" content="Last 5 posts" />
|
|
|
|
<title> {{ username }} blog </title>
|
|
|
|
{% endblock head %}
|
2024-08-10 08:24:22 +02:00
|
|
|
|
2024-08-10 21:01:49 +02:00
|
|
|
{% block content %}
|
2024-08-10 21:30:51 +02:00
|
|
|
<h1><a href="/" class="hidden-link">{{ username }} blog</a></h1>
|
2024-08-10 21:01:49 +02:00
|
|
|
<p style="text-align: right">
|
|
|
|
<a href="/about">About</a>
|
|
|
|
<a href="/all">All Posts</a>
|
|
|
|
</p>
|
|
|
|
<ul>
|
|
|
|
{% for post in posts %}
|
|
|
|
{{ article_macro::article(id=post.id,title=post.title,body=post.body,publish_date=post.publish_date) }}
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endblock content %}
|