blog/backend/templates/web/posts/{slug}.html

41 lines
1.0 KiB
HTML

{% extends "base.html" %}
{% block title %}{{ post.name }}{% endblock %}
{% block head %}{% endblock %}
{% block breadcrumb %}
<li><a href="/posts">posts</a></li>
<li><a href="/posts/{{ post.slug }}">{{ post.slug }}</a></li>
{% endblock %}
{% block content %}
<table id="blog-meta">
<tr>
<th>Published at</th>
<td>{{ post.published_at }}</td>
</tr>
{% match post.edited_at %}
{% when Some with (x) %}
<tr>
<th>Edited at</th>
<td>{{ x }}</td>
</tr>
{% when None %}
{% endmatch %}
<tr>
<th>Tags</th>
<td>
<ul class="tag-list">
{% for tag in post.tags %}
<li><a href="/tags/{{ tag }}">{{ tag }}</a></li>
{% endfor %}
</ul>
</td>
</tr>
</table>
<article class="wysiwyg">
{{ post.content|safe }}
</article>
{% endblock %}