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,8 +3,21 @@
{% block title %}{{ page.title }}{% endblock title %}
{% block content %}
<article>
<h1>{{ page.title }}</h1>
<div>{{ page.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">{{ page.title }}</h1>
<p class="text-sm opacity-70">About this site.</p>
</div>
{% if logged_in_admin %}
<a href="/admin/about" class="btn btn-ghost btn-sm">Edit page</a>
{% endif %}
</div>
<div class="card border border-base-300 bg-base-100 shadow-sm">
<div class="card-body">
<div class="leading-relaxed whitespace-pre-line">{{ page.content }}</div>
</div>
</div>
</article>
{% endblock content %}