add image support: eleventy-img plugin, hero images, responsive picture elements
All checks were successful
Deploy to S3 / deploy (push) Successful in 46s
All checks were successful
Deploy to S3 / deploy (push) Successful in 46s
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user