From fccd15aec3507fd3f0cb4a2c18a0ec1af1d69c1f Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 4 Jul 2024 11:36:33 -0700 Subject: migrate to zola --- templates/index.html | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 templates/index.html (limited to 'templates/index.html') diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..4f848be --- /dev/null +++ b/templates/index.html @@ -0,0 +1,38 @@ +{% extends "base.html" %} + +{%- block content -%} +
+ +{% if section.content %} +
+ {{ section.content | safe }} +
+{% endif %} + +

articles

+{%- set blog = get_section(path="blog/_index.md") -%} +{%- set post_count = blog.pages | length -%} + + +

notes

+{%- set notes = get_section(path="notes/_index.md") -%} +{%- set post_count = notes.pages | length -%} + + +
+ +{%- endblock content -%} -- cgit 1.4.1