Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3b12c62

Browse files
committedJul 7, 2024··
Prevent copy/paste mistakes
1 parent f52a78c commit 3b12c62

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
 

‎templates/shortcodes/image_figure.html

+11
Original file line numberDiff line numberDiff line change
@@ -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+
{% endif %}
10+
{% endif %}
11+
112
<figure>
213
{% if link %}<a href="{{link}}">{% endif %}
314
<img src="{{get_url(path=page.colocated_path ~ src)}}" alt="{{alt}}">

0 commit comments

Comments
 (0)
Please sign in to comment.