We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f52a78c commit 3b12c62Copy full SHA for 3b12c62
templates/shortcodes/image_figure.html
@@ -1,3 +1,14 @@
1
+{% if src != "image link" %}
2
+ {# Only validate against placeholders if we're not in the example #}
3
+ {% if alt == "image/GIF description" %}
4
+ {{ throw(message="Don't forget to write your own image description :)") }}
5
+ {% endif %}
6
+
7
+ {% if caption and caption == "image caption" %}
8
+ {{ throw(message="Don't forget to write your own image caption ^^") }}
9
10
+{% endif %}
11
12
<figure>
13
{% if link %}<a href="{{link}}">{% endif %}
14
<img src="{{get_url(path=page.colocated_path ~ src)}}" alt="{{alt}}">
0 commit comments