captcha_script.html: refactor captcha script inclusion in a separate template

This commit is contained in:
Zankaria 2024-08-04 00:47:12 +02:00
parent be69385fef
commit 95d5ec6cc6
4 changed files with 6 additions and 9 deletions

View file

@ -8,9 +8,7 @@
, board_name = "{{ board.uri }}"
, thread_id = "{{ thread.id }}";
</script>
{% if config.turnstile %}
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
{% endif %}
{% include 'captcha_script.html' %}
{% include 'header.html' %}