mirror of
https://github.com/arsenetar/pelican-red.git
synced 2025-07-05 13:53:21 +00:00
The templates now include microformatting from schema.org. The title and content_title blocks are no longer in most templates. This updates the progess on issue #1
14 lines
513 B
HTML
14 lines
513 B
HTML
{% extends 'base.html' %}
|
|
{% block content %}
|
|
<p>A list of all tags with article counts is below:</p>
|
|
<ul class="tag-list">
|
|
{% set all_tags = [] %}
|
|
{% for tag, articles in tags %}
|
|
{% if all_tags.append({'name': tag.name, 'url': tag.url, 'articles': articles|length() }) %}{% endif %}
|
|
{% endfor %}
|
|
{% for tag in all_tags | sort(reverse=True, attribute = 'articles') %}
|
|
<li><a href="{{ tag.url }}">{{ tag.name }}<span>{{ tag.articles }}</span></a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endblock %}
|