summaryrefslogtreecommitdiff
path: root/themes/emily_zola_theme/templates/index.html
blob: 795b7e1aaf3ac21cc8c13805c90685bc5ba17e42 (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
{% extends "base.html" %}

{% block content %}

{% set section = get_section(path="post/_index.md") %}
{% for page in section.pages %}
  {% if loop.index0 == config.extra.indexposts %}{% break %}{% endif %}
  <p>
    <div class="date">
      {{ page.date }}
    </div>
    <div class="title">
      <a href="{{ page.permalink | safe }}">{{ page.title }}</a>
    </div>
    <div class="taxonomies_index">
    {% if page.taxonomies.categories %}
        {% for category in page.taxonomies.categories %}
        &emsp;<a href="{{ get_taxonomy_url(kind="categories", name=category) | safe }}">/{{ category }}</a>
        {% endfor %}
    {% endif %}
    {% if page.taxonomies.tags %}
        {% for tag in page.taxonomies.tags %}
        &emsp;<a href="{{ get_taxonomy_url(kind="tags", name=tag) | safe }}">#{{ tag }}</a>
        {% endfor %}
    {% endif %}
    </div>
  </p>
{% endfor %}

{% endblock content %}