From be772f40c42711de54a3331db2781b1511acba9d Mon Sep 17 00:00:00 2001 From: garhve Date: Mon, 2 Jan 2023 06:02:01 +0800 Subject: change to zola --- themes/emily_zola_theme/templates/index.html | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 themes/emily_zola_theme/templates/index.html (limited to 'themes/emily_zola_theme/templates/index.html') diff --git a/themes/emily_zola_theme/templates/index.html b/themes/emily_zola_theme/templates/index.html new file mode 100644 index 0000000..795b7e1 --- /dev/null +++ b/themes/emily_zola_theme/templates/index.html @@ -0,0 +1,30 @@ +{% extends "base.html" %} + +{% block content %} + +{% set section = get_section(path="post/_index.md") %} +{% for page in section.pages %} + {% if loop.index0 == config.extra.indexposts %}{% break %}{% endif %} +

+

+ {{ 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 %} + +{% endblock content %} -- cgit v1.2.3-70-g09d2