]> Witch of Git - web/blog/blob - index.njk
Add a Justfile because I didn't remember how to do this last time
[web/blog] / index.njk
1 ---
2 layout: "layouts/layout.njk"
3 eleventyImport:
4 collections: ["posts"]
5 ---
6 <ul class="ls-none">
7 {% for post in collections.posts | reverse %}
8 <li>
9 <h2><a class="c-sun" href="{{ post.url }}">{{ post.data.title }}</a></h2>
10 <i class="dim">{{ post.date | date("YYYY-MM-DD") }}</i>
11 {% if post.data.summary %}
12 <p>{{ post.data.summary | markdown | safe }}</p>
13 {% endif %}
14 </li>
15 {% endfor %}
16 </ul>