Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-07-28 | Deprecate taxonomyTerm | Bjørn Erik Pedersen | |
In favour of 'taxonomy' Closes #11256 | |||
2023-07-28 | Warn about unknown kinds in disableKinds | Bjørn Erik Pedersen | |
See #11256 | |||
2023-07-27 | Fix multiple languages in HUGO_DISABLELANGUAGES | Bjørn Erik Pedersen | |
Fixes #11278 | |||
2023-07-19 | Fix broken handling of legacy taxonomyTerm in disableKinds | Bjørn Erik Pedersen | |
Fixes #11257 | |||
2023-07-16 | Fix setting config from env with complex (e.g. YAML) strings | Bjørn Erik Pedersen | |
So you can do ``` HUGO_OUTPUTS="home: [rss]" hugo ``` And similar. Fixes #11249 | |||
2023-07-13 | Improve behavior of defaultContentLanguageInSubdir when only the default ↵ | Bjørn Erik Pedersen | |
language is enabled 1 .Create sitemapindex in root of publishDir (will contain link to sitemap.xml in defaultContentLanguage site) 2. Create index.html in root of publishDir (will redirect to defaultContentLanguage site) Fixes #11229 | |||
2023-07-08 | Restore language.disabled config | Bjørn Erik Pedersen | |
Fixes #11219 | |||
2023-07-08 | Fix static content files multilingual root regression | Bjørn Erik Pedersen | |
Fixes #11223 | |||
2023-07-08 | Fix defaultContentLanguageInSubdir with only 1 language | Bjørn Erik Pedersen | |
Fixes #10064 | |||
2023-06-28 | Fix output formats and media type per language config regression | Bjørn Erik Pedersen | |
Fixes #11159 | |||
2023-06-19 | all: Fix typos in function names and comments | Oleksandr Redko | |
2023-06-18 | Replace the old log setup, with structured logging etc. | Bjørn Erik Pedersen | |
Fixes #11124 | |||
2023-06-13 | Fix config merge regression with root slices (e.g. disableKinds) | Bjørn Erik Pedersen | |
Fixes #11089 | |||
2023-06-12 | config: Remove unexpected _merge keys introduced in author and social maps | Bjørn Erik Pedersen | |
Fixes #11083 | |||
2023-06-01 | commands: Add --lang to hugo config | Bjørn Erik Pedersen | |
Fixes #11057 | |||
2023-06-01 | Make sure any default mounts show up in "hugo config" | Bjørn Erik Pedersen | |
Fixes #11040 | |||
2023-05-30 | Fail on invalid defaultContentLanguage | Bjørn Erik Pedersen | |
Fixes #11044 | |||
2023-05-30 | Avoid panic in invalid language config | Bjørn Erik Pedersen | |
Fixes #11046 | |||
2023-05-30 | Don't panic on empty yaml config params | Bjørn Erik Pedersen | |
Fixes #11047 | |||
2023-05-28 | Fix it so languageCode on top level config still works | Bjørn Erik Pedersen | |
This is common for monolingual sites, and we broke this in Hugo 0.112.4. Fixes #11037 | |||
2023-05-27 | Add language.LanguageCode | Bjørn Erik Pedersen | |
But keep an alias at Site Closes #11027 | |||
2023-05-23 | Fix regression when config for OutputFormat.BaseName is an empty string | Bjørn Erik Pedersen | |
Fixes #11000 | |||
2023-05-20 | Add hugo.WorkingDir | Bjørn Erik Pedersen | |
Fixes #10969 | |||
2023-05-20 | Make language merging of markup etc. config without values in the root | Bjørn Erik Pedersen | |
Updates #10953 | |||
2023-05-19 | Allow legacy taxonomyTerm in disableKinds | Bjørn Erik Pedersen | |
Updates #10953 | |||
2023-05-18 | Allow empty params.mainSections | Bjørn Erik Pedersen | |
Updates #10953 | |||
2023-05-17 | Support, but warn, about top level language custom params | Bjørn Erik Pedersen | |
Updates #10947 | |||
2023-05-17 | Handle transient errors in config loading etc. | Bjørn Erik Pedersen | |
As in: Get the Kubernetes site to build with the new Hugo version. Updates #10947 | |||
2023-05-17 | Deprecate site.Language.Params and some other fixes | Bjørn Erik Pedersen | |
Updates #10947 | |||
2023-05-16 | Add Sections to Site interface | Bjørn Erik Pedersen | |
See https://github.com/gohugoio/hugo/issues/10947#issuecomment-1550012671 Updates #10947 | |||
2023-05-16 | Create a struct with all of Hugo's config options | Bjørn Erik Pedersen | |
Primary motivation is documentation, but it will also hopefully simplify the code. Also, * Lower case the default output format names; this is in line with the custom ones (map keys) and how it's treated all the places. This avoids doing `stringds.EqualFold` everywhere. Closes #10896 Closes #10620 | |||
2023-01-16 | Make hugo.toml the new config.toml | Bjørn Erik Pedersen | |
Both will of course work, but hugo.toml will win if both are set. We should have done this a long time ago, of course, but the reason I'm picking this up now is that my VS Code setup by default picks up some JSON config schema from some random other software which also names its config files config.toml. Fixes #8979 | |||
2022-06-04 | helpers: Fix panic with invalid defaultMarkdownHandler | Bjørn Erik Pedersen | |
Fixes #9968 | |||
2022-03-17 | all: gofmt -w -r 'interface{} -> any' . | Bjørn Erik Pedersen | |
Updates #9687 | |||
2021-10-22 | config: Set HUGO_ENABLEGITINFO=false override in Set_in_string | Anthony Fok | |
This allows TestLoadConfigWithOsEnvOverrides/Set_in_string to PASS even if there is no .git directory, e.g. during Debian package build. | |||
2021-08-22 | Fix it so disableKinds etc. does not get merged in from theme | Bjørn Erik Pedersen | |
Unless the merge strategy is set up to do so. For `disableKinds` the current workaround is to make sure the project config has an entry, even if is empty: ``` disableKinds = [] ``` Note that this issue only touches root, non-map config-values that either is not set in project config or in Hugo's defaults. Fixes #8866 | |||
2021-07-28 | Switch to go-toml v2 | Bjørn Erik Pedersen | |
We have been using `go-toml` for language files only. This commit makes it the only TOML library. It's spec compliant and very fast. A benchark building a site with 200 pages with TOML front matter: ```bash name old time/op new time/op delta SiteNew/Regular_TOML_front_matter-16 48.5ms ± 1% 47.1ms ± 1% -2.85% (p=0.029 n=4+4) name old alloc/op new alloc/op delta SiteNew/Regular_TOML_front_matter-16 16.9MB ± 0% 16.7MB ± 0% -1.56% (p=0.029 n=4+4) name old allocs/op new allocs/op delta SiteNew/Regular_TOML_front_matter-16 302k ± 0% 296k ± 0% -2.20% (p=0.029 n=4+4) ``` Note that the front matter unmarshaling is only a small part of building a site, so the above is very good. Fixes #8801 | |||
2021-07-15 | Fix default values when loading from config dir | Bjørn Erik Pedersen | |
By waiting until we've loaded the config dir config before applying the default values. Fixes #8763 | |||
2021-07-03 | Fix panic when theme has permalinks config | Bjørn Erik Pedersen | |
Fixes #8724 | |||
2021-06-29 | config: Fix handling of invalid OS env config overrides | Bjørn Erik Pedersen | |
Fixes #8709 | |||
2021-06-24 | Fix language menu config regression | Bjørn Erik Pedersen | |
Fixes #8672 | |||
2021-06-18 | Implement configuration in a directory for modules | Bjørn Erik Pedersen | |
Fixes #8654 | |||
2021-06-14 | Misc config loading fixes | Bjørn Erik Pedersen | |
The main motivation behind this is simplicity and correctnes, but the new small config library is also faster: ``` BenchmarkDefaultConfigProvider/Viper-16 252418 4546 ns/op 2720 B/op 30 allocs/op BenchmarkDefaultConfigProvider/Custom-16 450756 2651 ns/op 1008 B/op 6 allocs/op ``` Fixes #8633 Fixes #8618 Fixes #8630 Updates #8591 Closes #6680 Closes #5192 | |||
2021-06-08 | Fix nested OS env config override when parent does not exist | Bjørn Erik Pedersen | |
Fixes #8618 | |||
2021-05-30 | config: Fix env split to allow = character in values | 卜木 | |
Fixes #8589 | |||
2021-03-20 | Fix OS env override for nested config param only available in theme | Bjørn Erik Pedersen | |
Fixes #8346 | |||
2021-03-14 | media: Make Type comparable | Bjørn Erik Pedersen | |
So we can use it and output.Format as map key etc. This commit also fixes the media.Type implementation so it does not need to mutate itself to handle different suffixes for the same MIME type, e.g. jpg vs. jpeg. This means that there are no Suffix or FullSuffix on media.Type anymore. Fixes #8317 Fixes #8324 | |||
2020-12-03 | all: Format code with gofumpt | Bjørn Erik Pedersen | |
See https://github.com/mvdan/gofumpt | |||
2020-11-25 | Allow setting the delimiter used for setting config via OS env, e.g. HUGO_ | Bjørn Erik Pedersen | |
Fixes #7829 | |||
2020-10-30 | Fix setting HUGO_MODULE_PROXY etc. via env vars | Bjørn Erik Pedersen | |
Fixes #7903 |