From 3b12c624a8f5b02074ad03550e9efb6a3d9115c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tau=20G=C3=A4rtli?= Date: Sun, 7 Jul 2024 16:04:18 +0200 Subject: [PATCH] Prevent copy/paste mistakes --- templates/shortcodes/image_figure.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/templates/shortcodes/image_figure.html b/templates/shortcodes/image_figure.html index ad5da2a04..df75e6eff 100644 --- a/templates/shortcodes/image_figure.html +++ b/templates/shortcodes/image_figure.html @@ -1,3 +1,14 @@ +{% if src != "image link" %} + {# Only validate against placeholders if we're not in the example #} + {% if alt == "image/GIF description" %} + {{ throw(message="Don't forget to write your own image description :)") }} + {% endif %} + + {% if caption and caption == "image caption" %} + {{ throw(message="Don't forget to write your own image caption ^^") }} + {% endif %} +{% endif %} +
{% if link %}{% endif %} {{alt}}