diff options
| author | root <root@mqdd.my.id> | 2026-03-14 14:38:27 +0000 |
|---|---|---|
| committer | root <root@mqdd.my.id> | 2026-03-14 14:38:27 +0000 |
| commit | cc4fde6912ee2c416873f8b15c75b2856d2fdb7e (patch) | |
| tree | 79095b637d6ad9496a7883d539f185dd235b066e /layouts | |
| parent | 558858f630a37b4aef3944c5f1202eb04a1a942e (diff) | |
Update 2026
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/shortcodes/img.html | 15 |
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> |
