aboutsummaryrefslogtreecommitdiffhomepage
path: root/deps
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2021-10-13 08:12:06 +0200
committerBjørn Erik Pedersen <[email protected]>2021-10-16 15:22:03 +0200
commit9185e11effa682ea1ef7dc98f2943743671023a6 (patch)
treef89d4138ddffd163a2afcd814ed2c26d3c66c4c9 /deps
parent168a3aab4622786ccd0943137fce3912707f2a46 (diff)
downloadhugo-9185e11effa682ea1ef7dc98f2943743671023a6.tar.gz
hugo-9185e11effa682ea1ef7dc98f2943743671023a6.zip
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
Diffstat (limited to 'deps')
-rw-r--r--deps/deps.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/deps.go b/deps/deps.go
index c0546db76..6b9da21fe 100644
--- a/deps/deps.go
+++ b/deps/deps.go
@@ -253,7 +253,7 @@ func New(cfg DepsCfg) (*Deps, error) {
return nil, err
}
- sp := source.NewSourceSpec(ps, fs.Source)
+ sp := source.NewSourceSpec(ps, nil, fs.Source)
timeoutms := cfg.Language.GetInt("timeout")
if timeoutms <= 0 {