mirror of
https://github.com/almet/notmyidea.git
synced 2025-04-28 19:42:37 +02:00
32 lines
898 B
HTML
32 lines
898 B
HTML
{% extends "base.html" %}
|
|
{% block title %}{{ article.title }} - {{ super() }}{% endblock %}
|
|
{% block content %}
|
|
|
|
|
|
|
|
|
|
|
|
<header>
|
|
{% if article.category == "Lectures" %}
|
|
<h3>Notes de lecture</h3>
|
|
<h1 class="post-title">« {{ article.title }} » par {{ article.author }}</h1>
|
|
<time datetime="{{ article.date.isoformat() }}">Lu le {{ article.locale_date }}</time>
|
|
{% else %}
|
|
<h1 class="post-title">{{ article.title }}</h1>
|
|
<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 %}
|
|
- Posted in the <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a> category
|
|
</p>
|
|
{% endif %}
|
|
</article>
|
|
{% endblock %}
|