Update
This commit is contained in:
parent
964534d0d9
commit
e262fc8ab2
6 changed files with 213 additions and 139 deletions
|
@ -9,6 +9,7 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Post archive</h1>
|
||||
<ul class="post-index dashed">
|
||||
{% for post in posts %}
|
||||
<li>
|
||||
|
|
36
backend/templates/web/tags/index.html
Normal file
36
backend/templates/web/tags/index.html
Normal file
|
@ -0,0 +1,36 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}posts{% endblock %}
|
||||
|
||||
{% block head %}{% endblock %}
|
||||
|
||||
{% block breadcrumb %}
|
||||
<li><a href="/posts">posts</a></li>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Tags</h1>
|
||||
{% for tag in tags %}
|
||||
<div>
|
||||
<h2>{{ tag.name }}</h2>
|
||||
<ul class="post-index dashed">
|
||||
{% for post in tag.posts %}
|
||||
<li>
|
||||
<span>
|
||||
<a href="/posts/{{ post.slug }}">{{ post.name }}</a>
|
||||
(<i>{{ post.published_at }}{% match post.edited_at %}{% when Some with (x) %} -> {{ x }}{% when None %}{% endmatch %}</i>)
|
||||
</span>
|
||||
<br />
|
||||
<ul class="tag-list">
|
||||
{% for tag in post.tags %}
|
||||
<li><a href="/tags/{{ tag }}">{{ tag }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<br />
|
||||
<span>{{ post.description }}</span>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue