diff options
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> |