-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The site (e.g. site.RegularPages) does not work from archetype templates #9046
Comments
bep
added a commit
to bep/hugo
that referenced
this issue
Oct 15, 2021
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 gohugoio#9032 Fixes gohugoio#7589 Fixes gohugoio#9043 Fixes gohugoio#9046
Merged
bep
added a commit
to bep/hugo
that referenced
this issue
Oct 15, 2021
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 gohugoio#9032 Fixes gohugoio#7589 Fixes gohugoio#9043 Fixes gohugoio#9046
bep
added a commit
to bep/hugo
that referenced
this issue
Oct 15, 2021
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 gohugoio#9032 Fixes gohugoio#7589 Fixes gohugoio#9043 Fixes gohugoio#9046
bep
added a commit
to bep/hugo
that referenced
this issue
Oct 16, 2021
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 gohugoio#9032 Fixes gohugoio#7589 Fixes gohugoio#9043 Fixes gohugoio#9046
bep
added a commit
to bep/hugo
that referenced
this issue
Oct 16, 2021
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 gohugoio#9032 Fixes gohugoio#7589 Fixes gohugoio#9043 Fixes gohugoio#9046
bep
added a commit
to bep/hugo
that referenced
this issue
Oct 16, 2021
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 gohugoio#9032 Fixes gohugoio#7589 Fixes gohugoio#9043 Fixes gohugoio#9046 Fixes gohugoio#9047
bep
added a commit
that referenced
this issue
Oct 16, 2021
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
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Workaround:
{{ .Site.... }}
.The text was updated successfully, but these errors were encountered: