joshua.seigler.net/site/_includes/home.njk
2025-06-24 09:38:39 -04:00

13 lines
358 B
Text

---
layout: "base.njk"
---
{%- from "components/collectionList.njk" import collectionList with context -%}
<main data-pagefind-body>
{{ content | safe }}
{%- for name, collection in collections -%}
{%- if name in ["posts"] -%}
<h2>{{name | capitalize }}</h2>
{{ collectionList(name, limit=5) }}
{%- endif -%}
{%- endfor -%}
</main>