summaryrefslogtreecommitdiff
path: root/views/head.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-01-17 19:34:08 +0100
committerTor Andersson <tor@ccxvii.net>2025-01-18 01:14:38 +0100
commite41be2b62a93fe2905261f5ea729744fe6a5c8e3 (patch)
treeff82f6a5ecbb44ceb952cd900c1ace7cdfec0250 /views/head.pug
parentfef72323ae627aa766b0871be7a51d7b30735e52 (diff)
downloadserver-e41be2b62a93fe2905261f5ea729744fe6a5c8e3.tar.gz
Use Altcha to hinder bots spamming account creation.
Diffstat (limited to 'views/head.pug')
-rw-r--r--views/head.pug8
1 files changed, 8 insertions, 0 deletions
diff --git a/views/head.pug b/views/head.pug
index 7489651..f388ce5 100644
--- a/views/head.pug
+++ b/views/head.pug
@@ -8,6 +8,14 @@ link(rel="stylesheet" href="/style.css")
if SITE_THEME
link(rel="stylesheet" href="/themes/"+SITE_THEME)
+mixin altcha_script()
+ if ALTCHA
+ script(async defer type="module" src="/altcha.min.js")
+
+mixin altcha_widget()
+ if ALTCHA
+ altcha-widget(challengeurl="/altcha-challenge" hidelogo hidefooter auto="onsubmit" style="--altcha-border-radius:0")
+
mixin social(title,description,game)
meta(property="og:title" content=title)
meta(property="og:type" content="website")