From 5175ac5ae3263e6c868f38dce612b1925a7fcddf Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sun, 20 Oct 2024 10:04:59 +0200 Subject: [PATCH] fix(giscus): fallback to `en` if no language code is set (#1084) --- layouts/partials/comments/provider/giscus.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/comments/provider/giscus.html b/layouts/partials/comments/provider/giscus.html index be5e2e8..97fbb77 100644 --- a/layouts/partials/comments/provider/giscus.html +++ b/layouts/partials/comments/provider/giscus.html @@ -11,7 +11,7 @@ data-emit-metadata="{{- default 0 .emitMetadata -}}" data-input-position="{{- default `top` .inputPosition -}}" data-theme="{{- default `light` .lightTheme -}}" - data-lang="{{- default $.Language.LanguageCode .lang -}}" + data-lang="{{- default (default `en` $.Language.LanguageCode) .lang -}}" data-loading="{{- .loading -}}" crossorigin="anonymous" async