mirror of
https://github.com/almet/notmyidea.git
synced 2025-04-28 19:42:37 +02:00
- 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.
44 lines
No EOL
1.3 KiB
HTML
44 lines
No EOL
1.3 KiB
HTML
{% extends "base.html" %}
|
|
{% block content %}
|
|
{% if category in CATEGORIES_DESCRIPTION.keys() %}
|
|
<h1>{{ CATEGORIES_DESCRIPTION[category][0] }}
|
|
<a id="feed" href="{{ SITEURL }}/feeds/{{ category.slug }}.atom.xml"><img src="{{ SITEURL }}/theme/rss.svg" /></a>
|
|
</h1>
|
|
<p>{{ CATEGORIES_DESCRIPTION[category][1] }}</p>
|
|
{% else %}
|
|
|
|
<h1> {{ category }}</h1>
|
|
{% endif %}
|
|
<section class="section index">
|
|
|
|
{% for article in articles | batch(10) | first %}
|
|
<section class="section index">
|
|
{% if not HIDE_DATE %}
|
|
<time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>
|
|
{% endif %}
|
|
|
|
<h1><a href="{{ SITEURL }}/{{ article.url }}" id="page-title">{{ article.title }}</a></h1>
|
|
{% if article.headline %}
|
|
{{ article.headline }}
|
|
{% else %}
|
|
{{ article.summary }}
|
|
{% endif %}
|
|
<br />
|
|
{% for tag in article.tags %}
|
|
<a class='tag' href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% if not loop.last %}, {% endif %}
|
|
{% endfor %}
|
|
</section>
|
|
{% endfor %}
|
|
<ul>
|
|
{% for batch in articles | batch(10) %}
|
|
{% if not loop.first %}
|
|
{% for article in batch %}
|
|
|
|
<li><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{
|
|
article.title }}</a></li>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
</section>
|
|
{% endblock %} |