some simple UI to make it work

This commit is contained in:
Priec
2026-05-17 17:46:04 +02:00
parent 0a36e8839c
commit 1d51a23bfb
10 changed files with 333 additions and 148 deletions

View File

@@ -3,10 +3,23 @@
{% block title %}{{ article.title }}{% endblock title %}
{% block content %}
<article>
<h1>{{ article.title }}</h1>
<p>Views: {{ article.view_count }}</p>
{% if article.excerpt %}<p>{{ article.excerpt }}</p>{% endif %}
<div>{{ article.content | linebreaksbr | safe }}</div>
<article class="space-y-2">
<div class="flex flex-wrap items-center justify-between gap-3">
<div>
<h1 class="text-2xl font-bold">{{ article.title }}</h1>
<p class="text-sm opacity-70">Views: {{ article.view_count }}</p>
</div>
<a href="/blog" class="btn btn-ghost btn-sm">Back to blog</a>
</div>
<div class="card border border-base-300 bg-base-100 shadow-sm">
<div class="card-body">
{% if article.excerpt %}
<p class="text-base leading-relaxed opacity-80">{{ article.excerpt }}</p>
<div class="border-t border-base-300 pt-4"></div>
{% endif %}
<div class="leading-relaxed whitespace-pre-line">{{ article.content }}</div>
</div>
</div>
</article>
{% endblock content %}