add image support: eleventy-img plugin, hero images, responsive picture elements
All checks were successful
Deploy to S3 / deploy (push) Successful in 46s

This commit is contained in:
2026-03-28 04:55:20 +00:00
parent 88d44c9de9
commit cd3fbc144f
7 changed files with 89 additions and 2 deletions

View File

@@ -5,6 +5,11 @@ layout: base.njk
{%- set latest = collections.columns | first -%}
{%- if latest %}
<article class="column-entry">
{% if latest.data.hero %}
<figure class="column-hero">
{% heroImage latest.data.hero, latest.data.heroAlt or latest.data.title %}
</figure>
{% endif %}
<header class="column-header">
<h1><a href="{{ latest.url }}">{{ latest.data.title }}</a></h1>
<time datetime="{{ latest.date | isoDate }}">{{ latest.date | readableDate }}</time>