hugo/commands
Bjørn Erik Pedersen a3701e0931 Switch to go-toml v2
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-28 11:51:13 +02:00
..
check.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
check_darwin.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
commandeer.go commands: Fix panic on invalid config in "hugo mod get" and similar 2021-07-20 18:23:09 +02:00
commands.go commands: Move time notification to after any build errors 2021-07-05 10:38:54 +02:00
commands_test.go Switch to go-toml v2 2021-07-28 11:51:13 +02:00
config.go modules: Use value type for module.Time 2021-06-27 18:06:52 +02:00
convert.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
deploy.go build: Allow optional "nodeploy" tag to exclude deploy command from bin 2020-10-23 09:03:41 +02:00
env.go Add complete dependency list in "hugo env -v" 2021-04-09 08:07:22 +02:00
gen.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
genautocomplete.go commands: Fix autocomplete docs 2021-02-20 14:08:51 +01:00
genchromastyles.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
gendoc.go commands: Remove all dates from gendoc 2021-05-01 12:03:56 +02:00
gendocshelper.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
genman.go Add tpl/site and tpl/hugo 2018-12-06 14:37:25 +01:00
helpers.go commands: Only show Ansi escape codes if in a terminal 2018-10-26 14:33:44 +02:00
hugo.go hugofs: Make FileMeta a struct 2021-07-15 17:14:26 +02:00
hugo_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
hugo_windows.go Update hugo_windows.go 2018-07-22 00:09:46 +02:00
import_jekyll.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
import_jekyll_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
limit_darwin.go Adjust rlimit logic 2019-04-07 00:53:55 +02:00
limit_others.go commands: Make the limit command work again 2018-04-11 09:50:19 +02:00
list.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
list_test.go commands: Fix config environment handling 2020-01-31 16:36:36 +01:00
mod.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
mod_npm.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
new.go hugofs: Make FileMeta a struct 2021-07-15 17:14:26 +02:00
new_content_test.go commands: Fix config environment handling 2020-01-31 16:36:36 +01:00
new_site.go Misc config loading fixes 2021-06-14 17:00:32 +02:00
new_theme.go Fix `new theme` command description 2021-03-14 18:47:23 +01:00
nodeploy.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
release.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
release_noop.go commands: Re-add the missing releaser command 2018-04-16 08:23:32 +02:00
server.go commands: Move time notification to after any build errors 2021-07-05 10:38:54 +02:00
server_errors.go Use --baseURL path for live-reload URL 2020-12-02 12:52:26 +01:00
server_test.go Misc config loading fixes 2021-06-14 17:00:32 +02:00
static_syncer.go tpl/fmt: Add erroridf template func 2021-06-07 19:11:03 +02:00
version.go Add tpl/site and tpl/hugo 2018-12-06 14:37:25 +01:00