add scrapbook

This commit is contained in:
Mathias DUPEUX 2025-04-15 14:01:52 +02:00
parent cbe04a86d1
commit 402dbfc006
8 changed files with 158 additions and 7 deletions

26
templates/scrapbook.html Normal file
View file

@ -0,0 +1,26 @@
{% extends 'base.html' %}
{% block head %}
<title>Scrapbook</title>
{% endblock %}
{% block content %}
<h1>Scrapook posts</h1>
<i><h6>
<a href="https://scrapbook.hackclub.com/mathias" style="color: #005B96;">See on scrapbook</a>
</h6></i>
<br>
{% for post in posts%}
{% if loop.first %}
<details id="{{ post.id }}" open>
{% else%}
<details id="{{ post.id }}">
{% endif %}
<summary>{{ post.postedAt | formatDate }}</summary>
<div>{{ post.text | formatContent |safe }}</div>
</details>
{% endfor %}
{% endblock %}