Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-07-28Switch to go-toml v2Bjø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-20commands: Fix panic on invalid config in "hugo mod get" and similarBjørn Erik Pedersen
Fixes #8773
2021-07-15hugofs: Make FileMeta a structBjørn Erik Pedersen
This commit started out investigating a `concurrent map read write` issue, ending by replacing the map with a struct. This is easier to reason about, and it's more effective: ``` name old time/op new time/op delta SiteNew/Regular_Deep_content_tree-16 71.5ms ± 3% 69.4ms ± 5% ~ (p=0.200 n=4+4) name old alloc/op new alloc/op delta SiteNew/Regular_Deep_content_tree-16 29.7MB ± 0% 27.9MB ± 0% -5.82% (p=0.029 n=4+4) name old allocs/op new allocs/op delta SiteNew/Regular_Deep_content_tree-16 313k ± 0% 303k ± 0% -3.35% (p=0.029 n=4+4) ``` See #8749
2021-07-05commands: Move time notification to after any build errorsJohn Hollowell
This allows error parsers (VSCode problemMatchers) to use the time notification as bounds for detecting errors. Closes #8403
2021-07-05commands: Make the --poll flag a durationBjørn Erik Pedersen
So you can do: ``` hugo server --poll 700ms ``` See #8720
2021-07-04Add polling as a fallback to native filesystem events in server watchBjørn Erik Pedersen
Fixes #8720 Fixes #6849 Fixes #7930
2021-06-27modules: Use value type for module.TimeBjørn Erik Pedersen
Which is in line with how we do it elsewhere.
2021-06-27commands: Add version time to "hugo config mounts"Bjørn Erik Pedersen
2021-06-27commands: Add some more info to "hugo config mounts"Bjørn Erik Pedersen
* Add owner path and version. * Also add thme meta info and Hugo version when run with -v flag
2021-06-18Split out the puthe path/filepath functions into common/pathsBjørn Erik Pedersen
So they can be used from the config package without cyclic troubles. Updates #8654
2021-06-16Do not read config from os.Environ when running testsBjørn Erik Pedersen
Fixes #8655
2021-06-14Misc config loading fixesBjø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-07tpl/fmt: Add erroridf template funcBjørn Erik Pedersen
Fixes #8613
2021-05-14Display version when building site (#8533)Joe Mooring
Closes #8531
2021-05-01commands: Remove all dates from gendocBjørn Erik Pedersen
It creates lots of diffs even if there are no changes.
2021-04-09Add complete dependency list in "hugo env -v"Bjørn Erik Pedersen
Fixes #8400
2021-03-14Fix `new theme` command descriptionAvinash Sonawane
`hugo new theme foo` creates theme `foo` in `./themes` and not in current directory.
2021-02-20commands: Fix autocomplete docsBjørn Erik Pedersen
2021-02-09commands: Add PowerShell completion supportAnthony Fok
Revert "Refactor: Remove powershell support" with fixes Thanks to Ben Mezger (@benmezger) for the original code. See #8122 This reverts commit a7c515e1b56e8cab34ca2647b4116904df9c8250.
2021-02-05Refactor: Write to stdout by defaultBen Mezger
2021-02-05Refactor: Remove powershell supportBen Mezger
2021-02-05Feat: Add zsh, fish and powershell completion supportBen Mezger
See issue #4296
2020-12-30Add Dart Sass supportBjørn Erik Pedersen
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes #7380 Fixes #8102
2020-12-05deps: Bump github.com/spf13/cobra from 0.15.0 to 0.20.0Anthony Fok
The substring match in TestExecute deploy test is adjusted accordingly.
2020-12-03all: Format code with gofumptBjørn Erik Pedersen
See https://github.com/mvdan/gofumpt
2020-12-02Use --baseURL path for live-reload URLsth
Fixes #6595
2020-11-13js: Let ESBuild handle all imports from node_modulesBjørn Erik Pedersen
This commit fixes some issues where modules in /assets share the same name as in node_modules. This was not intended, and with this commit the node_modules-components should be isolated. If you want to redefine something inside node_modules, use the `defines` option. Fixes #7948
2020-11-03Make js.Build fully support modulesBjørn Erik Pedersen
Fixes #7816 Fixes #7777 Fixes #7916
2020-10-23build: Allow optional "nodeploy" tag to exclude deploy command from binEric Hagman
Fixes #7826
2020-10-22Allow getJSON errors to be ignoredBjørn Erik Pedersen
This change is mostly motivated to get a more stable CI build (we're building the Hugo site there, with Instagram and Twitter shortcodes sometimes failing). Fixes #7866
2020-10-05Add force flag to server redirects configBjørn Erik Pedersen
Fixes #7778
2020-09-14typo: already -> alreadyDaniel Holbach
2020-09-13Add "hugo mod npm pack"Bjørn Erik Pedersen
This commit also introduces a convention where these common JS config files, including `package.hugo.json`, gets mounted into: ``` assets/_jsconfig ´`` These files mapped to their real filename will be added to the environment when running PostCSS, Babel etc., so you can do `process.env.HUGO_FILE_TAILWIND_CONFIG_JS` to resolve the real filename. But do note that `assets` is a composite/union filesystem, so if your config file is not meant to be overridden, name them something specific. This commit also adds adds `workDir/node_modules` to `NODE_PATH` and `HUGO_WORKDIR` to the env when running the JS tools above. Fixes #7644 Fixes #7656 Fixes #7675
2020-09-10modules: Make ignoreVendor a glob patternBjørn Erik Pedersen
Fixes #7642
2020-08-22commands: Remove logic that hides 'Building Sites' message after build completesJeff Warner
Append newline to the message instead. Fixes #7579
2020-07-04deploy: Ensure that non-trivial default flag values are passed through.Robert van Gent
2020-06-25commands: Add an option to print memory usage at intervalsBjørn Erik Pedersen
Use it with `hugo --print-mem
2020-06-06commands: Fix URL rewrites vs fast render server modeBjørn Erik Pedersen
Fixes #7357
2020-05-28Add redirect support to the serverBjørn Erik Pedersen
Fixes #7323
2020-05-18commands: Use WARN log level also for the early initializationBjørn Erik Pedersen
Fixes #7285
2020-04-13commands: Modify gen chromastyles to output all CSS classesSteve
Chroma was updated to include a new function to output all CSS classes without skipping any considered redundant with the current style. This will modify the `hugo gen chromastyles` command to use this new function by default, which avoids potential problems if the style is later modified. Also includes requires the updated Chroma (v0.7.2). Resolves #7167
2020-04-12Fix query parameter handling in server fast render modeBjørn Erik Pedersen
There may be a simpler way to get to the raw path, but this will have to do for now. Fixes #7163
2020-04-07commands: Use semver for min_version per recommendationsJay Williams
See https://github.com/gohugoio/hugoThemes#themetoml
2020-03-20Some minify configuration adjustmentsBjørn Erik Pedersen
2020-03-11Improve Tailwind/PostCSS error messagesBjørn Erik Pedersen
Fixes #7041 Fixes #7042
2020-03-08Add HTTP header support for the dev serverBjørn Erik Pedersen
Fixes #7031
2020-03-03commands: Add --all flag to hugo mod cleanBjørn Erik Pedersen
2020-02-19modules: Improve "hugo mod clean"Bjørn Erik Pedersen
* Only clean project modules * Optional glob pattern of module paths to clean Closes #6907
2020-02-19commands: Add "hugo mod verify"Bjørn Erik Pedersen
See #6907
2020-02-18commands: Support "hugo mod get -u ./..."Bjørn Erik Pedersen
Fixes #6828