diff options
| author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2026-02-02 21:10:12 +0530 |
|---|---|---|
| committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2026-02-02 21:10:12 +0530 |
| commit | d245c05825743e20d2df2900c4f8313d82ebcfe1 (patch) | |
| tree | b82ce18e8b9d2ff3d6c32f152b6d799d27eb4ffa /templates/shortcodes/img.html | |
first commit
Diffstat (limited to 'templates/shortcodes/img.html')
| -rw-r--r-- | templates/shortcodes/img.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/shortcodes/img.html b/templates/shortcodes/img.html new file mode 100644 index 0000000..8ff0820 --- /dev/null +++ b/templates/shortcodes/img.html @@ -0,0 +1,13 @@ +<figure> + {% if href %}<a href="{{ href }}">{% endif %} + <img src="{{ src }}" alt="{{ alt }}" + {% if title %}title="{{ title }}"{% endif %} + {% if height %}height="{{ height }}"{% endif %} + {% if width %}width="{{ width }}"{% endif %} + > + {% if href %}</a>{% endif %} + + {% if caption %} + <figcaption>{{ caption | safe }}</figcaption> + {% endif %} +</figure> |