We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2693992 commit 5ed6459Copy full SHA for 5ed6459
layouts/shortcodes/centered-figure.html
@@ -1,3 +1,13 @@
1
+<!-- Required parameters:
2
+src: path to image file
3
+Optional parameters:
4
+alt: alternative text for the image
5
+width: width of the image container (default is 100%)
6
+border-weight: weight of the border around the image (default is 0px, i.e., no border)
7
+caption: caption text for the image (optional, supports markdown formatting)
8
+-->
9
+
10
11
<div style="display: block; margin: 0 auto; max-width: {{ .Get "width" | default "100%" }};">
12
<img
13
src="{{ .Get "src" }}"
0 commit comments