mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-26 19:53:49 +01:00
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:
parent
2a18a92901
commit
8a7fb33163
1 changed files with 2 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue