From be772f40c42711de54a3331db2781b1511acba9d Mon Sep 17 00:00:00 2001 From: garhve Date: Mon, 2 Jan 2023 06:02:01 +0800 Subject: change to zola --- templates/index.html | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 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..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") %} +

{{ year}}

+ + {% for page in pages %} +

+

+ {{ page.date }} +
+ +
+ {{ page.title }} +
+ +
+ {% if page.taxonomies.categories %} + {% for category in page.taxonomies.categories %} +  /{{ category }} + {% endfor %} + {% endif %} + + {% if page.taxonomies.tags %} + {% for tag in page.taxonomies.tags %} +  #{{ tag }} + {% endfor %} + {% endif %} +
+

+ {% endfor %} +{% endfor %} + +{% endblock content %} -- cgit v1.2.3-70-g09d2