1
0
mirror of https://github.com/arsenetar/pelican-red.git synced 2025-07-05 13:53:21 +00:00
Andrew Senetar 0d53dc55d4 Update templates to include microformat support
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
2013-07-30 14:58:58 -04:00

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 %}