poobrains/themes/default/news.jinja
2017-08-06 04:47:30 +02:00

16 lines
430 B
Django/Jinja

{% extends "commentable.jinja" %}
{% block header %}
{% if mode == 'teaser' %}
<h2><a href="{{ content.url('full', quiet=True) or content.url('edit', quiet=True) }}" title="{{ content.title }}">{{ content.title }}</a></h2>
{% endif %}
{% endblock %}
{% block content %}
{% if mode == 'full' %}
{{ content.text.render() }}
{% else %}
<pre class="markdown">{{ content.text|truncate }}</pre>
{% endif %}
{% endblock %}