Skip to content

Commit 5ed6459

Browse files
emsimonsPseudomanifold
authored andcommitted
documented shortcode
1 parent 2693992 commit 5ed6459

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

layouts/shortcodes/centered-figure.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
111
<div style="display: block; margin: 0 auto; max-width: {{ .Get "width" | default "100%" }};">
212
<img
313
src="{{ .Get "src" }}"

0 commit comments

Comments
 (0)