aboutsummaryrefslogtreecommitdiff
path: root/crumbs/templates/article.html
blob: 34065023085fe7fd436f7bb7d672dd1418130202 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{% extends "base.html" %}

{% block title %}{{ article.title }} - {{ super() }}{% endblock title %}
{% block description %}{{ article.content|striptags|truncate(200)|escape }}{% endblock description %}
{% block keywords %}{% for tag in article.tags|sort %}{{ tag }}{% if not loop.last %}, {% endif %}{% endfor %}{% endblock keywords %}

{% block content %}

<h1>{{ article.title }}</h1>

<div class="card">

    <div class="card-header">
        {% set in_article = true %}
        {% include "article_header.html" %}
    </div>

    <div class="card-content">
            {{ article.content }}
    </div>
</div>

    <!-- <div class="col-lg-9 content">
        {{ article.content }}

        {% if article.related_posts %}
            <h4>Articles connexes</h4>
            <dl class="dl-horizontal">
            {% for related_post in article.related_posts %}
                <dt>{{ related_post.locale_date}}</dt>
                <dd><a href="{{ SITEURL }}/{{ related_post.url }}">{{ related_post.title }}</a></dd>
            {% endfor %}
            </dl>
        {% endif %}
  </div> -->
{% endblock %}