mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-10-10 22:09:31 +00:00
✨ Add opt-in client-side language redirect
This commit is contained in:
1 parent
da8ca782aa
commit
3a86a7656e
5 files changed
+305
No files matched your search
@@ -42,6 +42,13 @@ fingerprintAlgorithm = "sha512" # Valid values are "sha512" (default), "sha384",
|
||||
giteaDefaultServer = "https://git.fsfe.org"
|
||||
forgejoDefaultServer = "https://v11.next.forgejo.org"
|
||||
|
||||
[languageRedirect]
|
||||
enabled = false # Enable client-side language redirects for multilingual sites.
|
||||
storageKey = "blowfish_preferred_language" # localStorage key for manual language selections.
|
||||
# fallbackLanguage = "" # Language to use when no browser language matches. Defaults to Hugo's default content language.
|
||||
browserRedirectHomeOnly = true # Restrict browser-language redirects to home pages.
|
||||
storedLanguageRedirect = true # Redirect to the stored language when a matching translation exists.
|
||||
|
||||
[header]
|
||||
layout = "basic" # valid options: basic, fixed, fixed-fill, fixed-gradient, fixed-fill-blur
|
||||
|
||||
|
||||
Reference in new issue
Block a user