mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-23 10:21:46 +01:00
fix(giscus): fallback to en
if no language code is set (#1084)
This commit is contained in:
parent
37f1541c20
commit
5175ac5ae3
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
||||||
data-emit-metadata="{{- default 0 .emitMetadata -}}"
|
data-emit-metadata="{{- default 0 .emitMetadata -}}"
|
||||||
data-input-position="{{- default `top` .inputPosition -}}"
|
data-input-position="{{- default `top` .inputPosition -}}"
|
||||||
data-theme="{{- default `light` .lightTheme -}}"
|
data-theme="{{- default `light` .lightTheme -}}"
|
||||||
data-lang="{{- default $.Language.LanguageCode .lang -}}"
|
data-lang="{{- default (default `en` $.Language.LanguageCode) .lang -}}"
|
||||||
data-loading="{{- .loading -}}"
|
data-loading="{{- .loading -}}"
|
||||||
crossorigin="anonymous"
|
crossorigin="anonymous"
|
||||||
async
|
async
|
||||||
|
|
Loading…
Reference in a new issue