Remove figure support form card shortcode styles

This commit is contained in:
Alex Shpak
2025-09-21 02:20:15 +02:00
parent d7cab414a7
commit c8238fd893
3 changed files with 7 additions and 40 deletions
+5
View File
@@ -198,6 +198,11 @@
figure {
margin: $padding-16 0;
figcaption {
@extend .markdown-inner;
margin-top: $padding-16;
}
}
}
+2 -7
View File
@@ -194,8 +194,8 @@
}
}
// {{< card >}}, {{< figure >}}
.book-card, figure {
// {{< card >}}
.book-card {
display: block;
overflow: hidden;
height: 100%;
@@ -220,11 +220,6 @@
.markdown-inner {
padding: $padding-16;
}
figcaption {
@extend .markdown-inner;
padding: $padding-16;
}
}
.book-image {
@@ -28,36 +28,3 @@
This is tab MacOS content.
{{< /card >}}
{{% /columns %}}
## Build-in figure shortcode
Hugo's built-in figure shortcode is also styled as a card
{{% columns %}}
- ```go-html-template
{{</* figure
src="placeholder.svg"
alt="A placeholder image"
link="#"
caption="A placeholder image caption"
loading="lazy"
target="_blank"
title="Figure Title"
caption="A caption for the figure"
attr="An attribution"
attrlink="#"
*/>}}
```
- {{< figure
src="placeholder.svg"
alt="A placeholder image"
link="#"
caption="A placeholder image caption"
loading="lazy"
target="_blank"
title="Figure Title"
caption="A caption for the figure"
attr="An attribution"
attrlink="#"
>}}
{{% /columns %}}