about summary refs log tree commit diff
path: root/templates/index.html
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-07-04 11:36:33 -0700
committerFranck Cuny <franck@fcuny.net>2024-07-04 11:36:33 -0700
commitfccd15aec3507fd3f0cb4a2c18a0ec1af1d69c1f (patch)
treef506115024e7e6247279409fa053e59927ec398c /templates/index.html
parentdont format html files with prettier (diff)
downloadfcuny.net-fccd15aec3507fd3f0cb4a2c18a0ec1af1d69c1f.tar.gz
migrate to zola
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html38
1 files changed, 38 insertions, 0 deletions
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 -%}
+<section id="blog" class="times">
+
+{% if section.content %}
+<section id="introduction">
+  {{ section.content | safe }}
+</section>
+{% endif %}
+
+<h2>articles</h2>
+{%- set blog = get_section(path="blog/_index.md") -%}
+{%- set post_count = blog.pages | length -%}
+<ul>
+{%- for post in blog.pages %}
+<li><article>
+    <h3><a href="{{- post.path|safe -}}">{{- post.title -}}</a></h3>
+    <time datetime="{{ post.date | date(format="%+")}}">{{ post.date | date(format="%B %m, %Y")}}</time>
+</article></li>
+{%- endfor %}
+</ul>
+
+<h2>notes</h2>
+{%- set notes = get_section(path="notes/_index.md") -%}
+{%- set post_count = notes.pages | length -%}
+<ul>
+{%- for post in notes.pages %}
+<li><article>
+    <h3><a href="{{- post.path|safe -}}">{{- post.title -}}</a></h3>
+    <time datetime="{{ post.date | date(format="%+")}}">{{ post.date | date(format="%B %m, %Y")}}</time>
+</article></li>
+{%- endfor %}
+</ul>
+
+</section>
+
+{%- endblock content -%}