mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-18 12:14:21 +00:00
Miscellaneous updates for v0.140.0
- Add configuration option: disableDefaultLanguageRedirect - Allow collections.Querify to accept a map argument
This commit is contained in:
1 parent
4d3195223a
commit
fbe2d442f2
3 files changed
+25
-6
No files matched your search
@@ -278,6 +278,12 @@ To remain consistent and prevent unexpected behavior, do not mix these strategie
|
||||
|
||||
(`bool`) Will disable generation of alias redirects. Note that even if `disableAliases` is set, the aliases themselves are preserved on the page. The motivation with this is to be able to generate 301 redirects in an `.htaccess`, a Netlify `_redirects` file or similar using a custom output format. Default is `false`.
|
||||
|
||||
###### disableDefaultLanguageRedirect
|
||||
|
||||
{{< new-in 0.140.0 >}}
|
||||
|
||||
(`bool`) Disables generation of redirect to the default language when DefaultContentLanguageInSubdir is `true`. Default is `false`.
|
||||
|
||||
###### disableHugoGeneratorInject
|
||||
|
||||
(`bool`) Hugo will, by default, inject a generator meta tag in the HTML head on the _home page only_. You can turn it off, but we would really appreciate if you don't, as this is a good way to watch Hugo's popularity on the rise. Default is `false`.
|
||||
|
||||
Reference in new issue
Block a user