From c9a0ae57f6bbd2a51003acc878eaa6e17087cfa7 Mon Sep 17 00:00:00 2001 From: Franck Cuny <59291+fcuny@users.noreply.github.com> Date: Sat, 1 Feb 2025 14:39:05 -0800 Subject: simplify even more! --- templates/index.html | 17 +++++------------ templates/page.html | 12 ------------ 2 files changed, 5 insertions(+), 24 deletions(-) delete mode 100644 templates/page.html (limited to 'templates') 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" %} -
+{%- block content -%} -{%- for post in section.pages | sort(attribute="date", reverse=false) -%} -
- -
-{%- 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-%} -

{{ page.title }}

- -
- {{ page.date | date(format="%Y-%m-%d") }} -
- -{{ page.content | safe -}} - -☝️ back home - -{%- endblock content %} -- cgit v1.2.3