summaryrefslogtreecommitdiff
path: root/themes/emily_zola_theme/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/emily_zola_theme/templates/index.html')
-rw-r--r--themes/emily_zola_theme/templates/index.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/themes/emily_zola_theme/templates/index.html b/themes/emily_zola_theme/templates/index.html
new file mode 100644
index 0000000..795b7e1
--- /dev/null
+++ b/themes/emily_zola_theme/templates/index.html
@@ -0,0 +1,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 %}