Update
This commit is contained in:
parent
501b9d3093
commit
964534d0d9
21 changed files with 762 additions and 207 deletions
|
@ -9,7 +9,7 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<ul id="post-index" class="dashed">
|
||||
<ul class="post-index dashed">
|
||||
{% for post in posts %}
|
||||
<li>
|
||||
<span>
|
||||
|
@ -17,6 +17,12 @@
|
|||
(<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 %}
|
||||
|
|
|
@ -1,16 +1,40 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}{{ name }}{% endblock %}
|
||||
{% block title %}{{ post.name }}{% endblock %}
|
||||
|
||||
{% block head %}{% endblock %}
|
||||
|
||||
{% block breadcrumb %}
|
||||
<li><a href="/posts">posts</a></li>
|
||||
<li><a href="/posts/{{ slug }}">{{ slug }}</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">
|
||||
{{content|safe }}
|
||||
{{ post.content|safe }}
|
||||
</article>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue