feat(shortcode): figure and figures flex box
All checks were successful
Deploy workflow / deploy (push) Successful in 33s

This commit is contained in:
Matthieu Bessat 2024-05-07 18:17:24 +02:00
parent 607b576cb7
commit 5171bcfdf2
14 changed files with 158 additions and 58 deletions

View file

@ -23,12 +23,14 @@
{{ $featuredImage := .Resources.GetMatch (.Params.featured_image.src | safeURL) }}
{{ if $featuredImage }}
{{ $featuredImage = $featuredImage.Resize "900x" }}
<figure class="article__featured-image">
<div class="single-figure-container article__featured-image-container">
<figure class="article__featured-image fig-img">
<img alt="" src="{{ $featuredImage.RelPermalink }}" />
{{ with .Params.featured_image.caption }}
<figcaption>{{ . }}</figcaption>
{{ end }}
</figure>
</div>
{{ end }}
{{ end }}