30 lines
982 B
HTML
30 lines
982 B
HTML
<!-- retoor <retoor@molodetz.nl> -->
|
|
{% extends "base.html" %}
|
|
{% block content %}
|
|
{% set viewer = current_user(request) %}
|
|
<article>
|
|
<header class="article-header">
|
|
{% set _post = post %}
|
|
{% include "_content_header.html" %}
|
|
<h1>{{ render_title(post.title) }}</h1>
|
|
{% if author %}
|
|
<div class="byline">
|
|
{% set _user = author %}{% set _size = 28 %}
|
|
{% include "_avatar_link.html" %}
|
|
<span>by {% include "_user_link.html" %}</span>
|
|
</div>
|
|
{% endif %}
|
|
</header>
|
|
<div class="prose" data-enhance>
|
|
{{ render_content(post.body) | safe }}
|
|
</div>
|
|
{% if viewer and is_admin(viewer) %}
|
|
<div class="actions"><a class="button ghost small" href="/admin/posts/{{ post.uid }}/edit">Edit</a></div>
|
|
{% endif %}
|
|
</article>
|
|
<section class="closing">
|
|
<span class="label">Keep reading</span>
|
|
<div class="actions"><a class="button ghost" href="/{{ post.topic }}">Back to the {{ topic_title | lower }}</a></div>
|
|
</section>
|
|
{% endblock %}
|