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-11-12commands: Fix missing file locking in server partial renderBjørn Erik Pedersen
Fixes #9162
2021-10-18Fix the "page picker" logic in --navigateToChangedBjørn Erik Pedersen
Fixes #9051
2021-10-18Add a cross process build lock and use it in the archetype content builderBjørn Erik Pedersen
Fixes #9048
2021-10-16Reimplement archetypesBjørn Erik Pedersen
The old implementation had some issues, mostly related to the context (e.g. name, file paths) passed to the template. This new implementation is using the exact same code path for evaluating the pages as in a regular build. This also makes it more robust and easier to reason about in a multilingual setup. Now, if you are explicit about the target path, Hugo will now always pick the correct mount and language: ```bash hugo new content/en/posts/my-first-post.md ``` Fixes #9032 Fixes #7589 Fixes #9043 Fixes #9046 Fixes #9047
2021-09-17commands: Make the error handling for the mod commands more lenientBjørn Erik Pedersen
So it at least is possible to do a `hugo mod clean --all` if the cache is in a funky state.
2021-08-31commands: Don't fail on template errors on go mod graph etc.Bjørn Erik Pedersen
Fixes #8942
2021-08-31Avoid failing with "module not found" for hugo mod init and similarBjørn Erik Pedersen
Fixes #8940
2021-08-21Revert "commands: Avoid too many watch file handles causing the server to ↵Bjørn Erik Pedersen
fail to start" This reverts commit 3f38c785b7208440e2a9dd9a80cb39d4ae23e676.
2021-08-21highlight: Remove some pygments referencesHelder Pereira
2021-08-19commands: Avoid too many watch file handles causing the server to fail to startShiming Zhang
Fixes #8904
2021-08-14Import time/tzdata on WindowsBjørn Erik Pedersen
Updates #8892
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