feat(giscus): use current language as fallback for lang param and add loading param (#1075)

fix: giscus use current lang as default, and add missing `loading` params
This commit is contained in:
xiaoxiyao 2024-10-20 02:46:27 +08:00 committed by GitHub
parent 2a18a92901
commit 8a7fb33163
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,7 +11,8 @@
data-emit-metadata="{{- default 0 .emitMetadata -}}"
data-input-position="{{- default `top` .inputPosition -}}"
data-theme="{{- default `light` .lightTheme -}}"
data-lang="{{- default `en` .lang -}}"
data-lang="{{- default $.Language.LanguageCode .lang -}}"
data-loading="{{- .loading -}}"
crossorigin="anonymous"
async
></script>