aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html17
-rw-r--r--templates/page.html12
2 files changed, 5 insertions, 24 deletions
diff --git a/templates/index.html b/templates/index.html
index cf83d26..bb5a86c 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,14 +1,7 @@
-{% extends "base.html" %} {%- block content -%} {% if section.content %} {{ section.content | safe }} {% endif %}
+{% extends "base.html" %}
-<hr />
+{%- block content -%}
-{%- for post in section.pages | sort(attribute="date", reverse=false) -%}
-<section>
- <ul class="post-list">
- <li>
- <a href="{{- post.path|safe -}}">{{- post.title -}}</a>
- <span class="post-date">{{ post.date | date(format="%d %h %Y")}}</span>
- </li>
- </ul>
-</section>
-{%- endfor -%} {%- endblock content -%}
+{% if section.content %} {{ section.content | safe }}{% endif %}
+
+{%- endblock content -%}
diff --git a/templates/page.html b/templates/page.html
deleted file mode 100644
index c29d871..0000000
--- a/templates/page.html
+++ /dev/null
@@ -1,12 +0,0 @@
-{% extends "base.html" %} {% block title %}{{ page.title }} - {{ config.title }}{% endblock title %} {% block content-%}
-<h1>{{ page.title }}</h1>
-
-<div class="metadata">
- <span class="date">{{ page.date | date(format="%Y-%m-%d") }}</span>
-</div>
-
-{{ page.content | safe -}}
-
-<a href="/">☝️ back home</a>
-
-{%- endblock content %}