summaryrefslogtreecommitdiff
path: root/layouts/partials/scripts.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-02-06 16:15:31 +0800
committerEltrac <hi@guhub.cn>2025-02-06 16:15:31 +0800
commitb7f7e964a59980858339635fc21ef711ae21f9e8 (patch)
tree19202c829181a203f1ad83ba67a5eefdc53502e0 /layouts/partials/scripts.html
parentc9a655a4b4bb59d7d01fc40d3d3ba978156a0741 (diff)
refactor(i18n): exploit Hugo's built-in i18n feature
Former-commit-id: 89d53b05c0a8253ee534ddeed067b3e747e8251b
Diffstat (limited to 'layouts/partials/scripts.html')
-rw-r--r--layouts/partials/scripts.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index 9c980c77..95010ada 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -45,7 +45,7 @@ function loadGiscus() {
script.setAttribute('data-emit-metadata', '0');
script.setAttribute('data-input-position', 'bottom');
script.setAttribute('data-theme', 'light');
- script.setAttribute('data-lang', 'en');
+ script.setAttribute('data-lang', '{{ T "lang" }}');
script.crossOrigin = 'anonymous';
script.async = true;