hugo/commands
Bjørn Erik Pedersen 9185e11eff Reimplement archetypes
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-10-16 15:22:03 +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: Make the error handling for the mod commands more lenient 2021-09-17 17:16:34 +02:00
commands.go commands: Don't fail on template errors on go mod graph etc. 2021-08-31 22:16:12 +02:00
commands_test.go Switch to go-toml v2 2021-07-28 11:51:13 +02:00
config.go commands: Don't fail on template errors on go mod graph etc. 2021-08-31 22:16:12 +02:00
convert.go commands: Don't fail on template errors on go mod graph etc. 2021-08-31 22:16:12 +02:00
deploy.go commands: Don't fail on template errors on go mod graph etc. 2021-08-31 22:16:12 +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 highlight: Remove some pygments references 2021-08-21 15:50:49 +02: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 Reimplement archetypes 2021-10-16 15:22:03 +02:00
hugo_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
hugo_windows.go Import time/tzdata on Windows 2021-08-14 12:09:41 +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 commands: Don't fail on template errors on go mod graph etc. 2021-08-31 22:16:12 +02:00
list_test.go commands: Fix config environment handling 2020-01-31 16:36:36 +01:00
mod.go commands: Make the error handling for the mod commands more lenient 2021-09-17 17:16:34 +02:00
mod_npm.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
new.go Reimplement archetypes 2021-10-16 15:22:03 +02:00
new_content_test.go commands: Fix config environment handling 2020-01-31 16:36:36 +01:00
new_site.go Reimplement archetypes 2021-10-16 15:22:03 +02:00
new_theme.go commands: Don't fail on template errors on go mod graph etc. 2021-08-31 22:16:12 +02: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: Don't fail on template errors on go mod graph etc. 2021-08-31 22:16:12 +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