summaryrefslogtreecommitdiff
path: root/layouts/shortcodes
diff options
context:
space:
mode:
authorroot <root@mqdd.my.id>2026-03-14 14:38:27 +0000
committerroot <root@mqdd.my.id>2026-03-14 14:38:27 +0000
commitcc4fde6912ee2c416873f8b15c75b2856d2fdb7e (patch)
tree79095b637d6ad9496a7883d539f185dd235b066e /layouts/shortcodes
parent558858f630a37b4aef3944c5f1202eb04a1a942e (diff)
Update 2026
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r--layouts/shortcodes/img.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html
new file mode 100644
index 0000000..58a6765
--- /dev/null
+++ b/layouts/shortcodes/img.html
@@ -0,0 +1,15 @@
+<figure class="center-img">
+<center>
+ <img
+ src="{{ .Get "src" }}"
+ alt="{{ .Get "alt" }}"
+ title="{{ .Get "title" }}"
+ >
+</center>
+
+ {{ with .Get "title" }}
+ <figcaption style="font-size:0.9em; opacity:0.7; margin-top:5px;">
+ {{ . }}
+ </figcaption>
+ {{ end }}
+</figure>