aboutsummaryrefslogtreecommitdiff
path: root/crumbs/templates/tags.html
blob: bc0a450a76750f7e506e5c85a2be75caecac20fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{% extends "base.html" %}
<!-- TEMPLATE: TAGS -->

{% block title %}{{ NEST_TAGS_HEAD_TITLE }} - {{ super() }}{% endblock title %}
{% block description %}{{ NEST_TAGS_HEAD_DESCRIPTION }}{% endblock description %}

<!-- {% block headerstyle %}
    {% if NEST_HEADER_IMAGES %}
    <div class="header-container" style="background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('{{ SITEURL }}/images/{{ NEST_HEADER_IMAGES }}'); background-position: center; ">
    {% else %}
    <div class="header-container gradient">
    {% endif %}
{% endblock headerstyle %} -->

{% block header %}
    <div class="container header-wrapper">
        <div class="row">
              <div class="col-lg-12">
                  <div class="header-content">
                      <h1 class="header-title text-uppercase">{{ NEST_TAGS_HEADER_TITLE }}</h1>
                      <div class="header-underline"></div>
                      <p class="header-subtitle header-subtitle-homepage">{{ NEST_TAGS_HEADER_SUBTITLE }}</p>
                  </div>
              </div>
        </div>
    </div>
{% endblock header %}

{% block content %}
    <div class="archive-container">
        <div class="container content archive">
            <h2><a href="{{ SITEURL }}/tags.html">{{ NEST_TAGS_CONTENT_TITLE }}</a></h2>
            <dl class="dl-horizontal">
            	{% for tag, articles in tags|sort %}
            	{% set articles_count = articles | count %}
            	<dt><span class="label label-default">{{ articles | count }}</span> {% if articles_count == 1 %}article{% else %}articles{% endif %} {{ NEST_TAGS_CONTENT_LIST }}</dt>
            	<dd><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></dd>
            	{% endfor %}
            </dl>
        </div>
    </div>
{% endblock content %}