summary refs log tree commit diff stats
path: root/src/themes/serene/templates/shortcodes/figure.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/themes/serene/templates/shortcodes/figure.html')
-rw-r--r--src/themes/serene/templates/shortcodes/figure.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/themes/serene/templates/shortcodes/figure.html b/src/themes/serene/templates/shortcodes/figure.html
new file mode 100644
index 0000000..8a4123f
--- /dev/null
+++ b/src/themes/serene/templates/shortcodes/figure.html
@@ -0,0 +1,8 @@
+<figure>
+    <img src="{{ src }}" {% if alt %} alt="{{ alt }}"{% endif %}>
+    {% if via %}
+    <figcaption><a href="{{via}}">via</a></figcaption>
+    {% else %}
+    <figcaption>{{ caption }}</figcaption>
+    {% endif %}
+</figure>
\ No newline at end of file