diff options
| author | Franck Cuny <franck@fcuny.net> | 2024-07-04 11:36:33 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2024-07-04 11:36:33 -0700 |
| commit | fccd15aec3507fd3f0cb4a2c18a0ec1af1d69c1f (patch) | |
| tree | f506115024e7e6247279409fa053e59927ec398c /templates/blog.html | |
| parent | dont format html files with prettier (diff) | |
| download | fcuny.net-fccd15aec3507fd3f0cb4a2c18a0ec1af1d69c1f.tar.gz | |
migrate to zola
Diffstat (limited to 'templates/blog.html')
| -rw-r--r-- | templates/blog.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/blog.html b/templates/blog.html new file mode 100644 index 0000000..0e3c2bf --- /dev/null +++ b/templates/blog.html @@ -0,0 +1,20 @@ +{% extends "section.html" %} + +{%- block content -%} +<h1>{{ section.title }}</h1> +{%- for year, posts in section.pages | group_by(attribute="year") -%} +<section class="times"> +<h2>{{ year }}</h2> + +<ul> +{%- for post in posts %} + <li> + <h3><a href="{{- post.path|safe -}}">{{- post.title -}}</a></h3> + <time datetime="{{ post.date | date(format="%+")}}">{{ post.date | date(format="%d %h %Y")}}</time> + </li> +{%- endfor %} +</ul> + +</section> +{%- endfor %} +{%- endblock content -%} |
