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
commit89d53b05c0a8253ee534ddeed067b3e747e8251b (patch)
treeee4e8285968fa8a5b958d4385a78108151f78133 /layouts/partials/scripts.html
parent2089b11533ed0a630cb8ce8ff34d72fd24549b37 (diff)
refactor(i18n): exploit Hugo's built-in i18n feature
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;