feat(shortcode): figure and figures flex box
All checks were successful
Deploy workflow / deploy (push) Successful in 33s
All checks were successful
Deploy workflow / deploy (push) Successful in 33s
This commit is contained in:
parent
607b576cb7
commit
5171bcfdf2
14 changed files with 158 additions and 58 deletions
|
|
@ -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 }}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue