Move features to Markdown content model

This commit is contained in:
Marc Froehlich
2026-07-07 00:01:59 +02:00
parent 42255e2b41
commit 59aade8004
16 changed files with 316 additions and 178 deletions
+39
View File
@@ -0,0 +1,39 @@
---
layout: base.njk
---
<section class="hero">
<p class="badge">{{ category }} · since {{ since }}</p>
<h1>{{ title }}</h1>
<p class="lead">{{ summary }}</p>
</section>
<section class="section narrow">
<article class="card content-card">
<div class="feature-icon large">{{ icon }}</div>
{{ content | safe }}
{% if tagsList %}
<h2>Keywords</h2>
<div class="tag-list">
{% for tag in tagsList %}
<span>{{ tag }}</span>
{% endfor %}
</div>
{% endif %}
{% if related %}
<h2>Related features</h2>
<div class="actions">
{% for slug in related %}
{% for item in collections.features %}
{% if item.fileSlug == slug %}
<a class="button secondary" href="{{ item.url }}">{{ item.data.title }}</a>
{% endif %}
{% endfor %}
{% endfor %}
</div>
{% endif %}
</article>
</section>