mirror of
https://github.com/almet/notmyidea.git
synced 2025-04-28 19:42:37 +02:00
33 lines
1 KiB
HTML
33 lines
1 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}{{ article.title }} - {{ super() }}{% endblock %}
|
|
{% block content %}
|
|
|
|
<header>
|
|
{% if article.category == "Lectures" %}
|
|
<h1 class="post-title">« {{ article.title }} » par {{ article.author }}</h1>
|
|
{% if article.headline %}
|
|
<p><em>{{ article.headline }}</em></p>
|
|
{% endif %}
|
|
<time datetime="{{ article.date.isoformat() }}">Lu en {{ article.date | strftime("%B %Y") }}</time>
|
|
{% else %}
|
|
<h1 class="post-title">{{ article.title }}</h1>
|
|
{% if article.headline %}
|
|
<p><em>{{ article.headline }}</em></p>
|
|
{% endif %}
|
|
<time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>
|
|
{% endif %}
|
|
|
|
|
|
</header>
|
|
<article>
|
|
{{ article.content }}
|
|
{% if article.tags %}
|
|
<p>
|
|
{% for tag in article.tags %}
|
|
<a href="{{ SITEURL }}/{{ tag.url }}">#{{ tag }}</a>{% if not loop.last %}, {% endif %}
|
|
{% endfor %}
|
|
- Posté dans la catégorie <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
|
|
</p>
|
|
{% endif %}
|
|
</article>
|
|
{% endblock %}
|