figure: support built-in shortcode #746

This commit is contained in:
Sören Weber 2023-12-03 19:25:56 +01:00
parent ce464fe11a
commit fb67e6e2b5
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
3 changed files with 25 additions and 1 deletions

View file

@ -30,6 +30,8 @@ This document shows you what's new in the latest release and flags it with one o
- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} New partial for defining the heading. See [documentation](basics/customization#partials) for further reading.
- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Support for Hugo's built-in [`figure` shortcode](https://gohugo.io/content-management/shortcodes/#figure).
---
## 5.23.0 (2023-11-03) {#5230}

View file

@ -9,4 +9,4 @@ Thanks to the simplicity of Hugo, this page is as empty as this theme needs requ
Just download at least version {{% badge color="fuchsia" icon="fab fa-hackerrank" title=" " %}}0.112.4{{% /badge %}} of the [Hugo binary](https://gohugo.io/getting-started/installing/) for your OS (Windows, Linux, Mac).
![Magic](magic.gif)
{{% figure src="magic.gif" link="https://gohugo.io" alt="Magic" caption="It's a kind of magic" %}}

View file

@ -344,10 +344,13 @@ dd {
}
#R-body img,
#R-body figure > figcaption > h4,
#R-body figure > figcaption > p,
#R-body .video-container {
display: block;
margin-left: auto;
margin-right: auto;
padding: 0;
text-align: center;
}
@ -376,6 +379,25 @@ dd {
vertical-align: bottom;
}
#R-body figure > figcaption{
margin: 0;
}
#R-body figure > figcaption > h4{
font-size: 1.0rem;
font-weight: 500;
margin: 0;
}
#R-body figure > figcaption > p{
font-size: .85rem;
font-weight: 300;
margin-top: .15rem;
}
#R-body figure > figcaption > h4 + p{
margin-top: 0;
}
#R-body-inner {
display: flex;
flex: auto;