summaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html36
1 files changed, 36 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..64ac3cd
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,36 @@
+{% extends "base.html" %}
+
+{% block content %}
+
+{% set section = get_section(path="post/_index.md") %}
+{% for year, pages in section.pages | group_by(attribute="year") %}
+ <h3>{{ year}} </h3>
+
+ {% for page in pages %}
+ <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 %}
+{% endfor %}
+
+{% endblock content %}