mirror of
https://github.com/MathiasDPX/blog.git
synced 2025-05-10 07:33:09 +00:00
add scrapbook
This commit is contained in:
parent
cbe04a86d1
commit
402dbfc006
8 changed files with 158 additions and 7 deletions
26
templates/scrapbook.html
Normal file
26
templates/scrapbook.html
Normal 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 %}
|
Loading…
Add table
Add a link
Reference in a new issue