Files
kst4contest/website/src/_layouts/feature.njk
T
2026-07-07 01:10:36 +02:00

58 lines
1.3 KiB
Plaintext

---
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.sortedFeatures %}
{% if item.fileSlug == slug %}
<a class="button secondary" href="{{ item.url }}">{{ item.data.title }}</a>
{% endif %}
{% endfor %}
{% endfor %}
</div>
{% endif %}
</article>
</section>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "TechArticle",
"headline": "{{ title }}",
"description": "{{ summary }}",
"about": "KST4Contest",
"url": "https://kst4contest.hamradioonline.de{{ page.url }}",
"author": {
"@type": "Person",
"name": "Praktimarc"
},
"publisher": {
"@type": "Organization",
"name": "KST4Contest"
}
}
</script>