tags.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. {% extends "base.html" %}
  2. {% block title %}Tags - {{ SITENAME }}{% endblock %}
  3. {% block breadcrumbs %}
  4. {% if DISPLAY_BREADCRUMBS %}
  5. <ol class="breadcrumb">
  6. <li><a href="{{ SITEURL }}" title="{{ SITENAME }}"><i class="fa fa-home fa-lg"></i></a></li>
  7. <li class="active">Tags</li>
  8. </ol>
  9. {% endif %}
  10. {% endblock %}
  11. {% block content %}
  12. <section id="tags">
  13. <h1>Tags for {{ SITENAME }}</h1>
  14. <div class="panel-group" id="accordion">
  15. {%- for tag, articles in tags|sort %}
  16. <div class="panel panel-default">
  17. <div class="panel-heading">
  18. <h4 class="panel-title">
  19. <a data-toggle="collapse" data-parent="#accordion" href="#collapse-{{tag.slug}}">{{ tag }} <span class="badge pull-right">{{ articles|count }}</span></a>
  20. </h4>
  21. </div>
  22. <div id="collapse-{{tag.slug}}" class="panel-collapse collapse">
  23. <div class="panel-body">
  24. {% for article in articles %}
  25. <p><span class="categories-timestamp"><time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time></span> <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></p>
  26. {% endfor %}
  27. </div>
  28. </div>
  29. </div>
  30. {% endfor %}
  31. </div>
  32. </section>
  33. {% endblock %}