blog.notmyidea.org/mnmlist/templates/article.html
Alexis Métaireau 9df3b183b6 Enhanced UI & UX; Added New ISBN Plugin.
- Added the ability to display book cover for the category "Lectures" if ISBN cover is available.
- Moved author's name into a small tag for better hierarchy and readability.
- Implemented a feature to indicate link sizes depending on the number of articles associated with a given tag.
- Implemented a mini footer element displaying an RSS feed icon.
- Improved category display using description dictionary.
- Added a new plugin "isbn_downloader" to fetch ISBN information when needed.
- Included the count of articles for each category.
- Implemented changes for better layout and readability of tags and categories.
- Adjusted the layout of the webpage, improving the overall look of the page.
- Included "requests" in the requirements.txt for supplanting dependencies required by the new plugin and/or features.
2023-09-29 18:30:09 +02:00

38 lines
1.2 KiB
HTML

{% extends "base.html" %}
{% block title %}{{ article.title }} - {{ super() }}{% endblock %}
{% block content %}
<header>
{% if article.category == "Lectures" %}
{% if article.category == "Lectures" and article.isbn_cover %}
<div class="book-cover">
<img src="{{SITEURL}}/{{article.isbn_cover}}" />
</div>
{% endif %}
<h1 class="post-title">{{ article.title }}<small><br />par {{ article.author }}</small></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 %}