-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Repeated use of :sections
breaks permalink
#10377
Comments
Clarification... First, the Second, the Example 1 - Bad (demonstrates pages being clobbered)
site configuration
command
Example 2 - Good (but demonstrates the bug)
site configuration
command
The issue as reported is valid, as these files are dumped in the root instead of in a section. |
I still don't think the original behavior is correct, despite resulting in non-unique filenames. |
@stefanv That's why I wrote
|
Minimal reproducible example: git clone --single-branch -b hugo-github-issue-10377 https://github.com/jmooring/hugo-testing hugo-github-issue-10377
cd hugo-github-issue-10377
hugo && tree public
site config [permalinks]
posts = '/:sections[1]/:sections[last]/:slug' Expected output:
Actual output:
|
Yea, it's a bug and it will be fixed soonish. |
Apologies, @jmooring, I missed that last sentence. |
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. |
Using this setting:
I expect output paths of the form
/section_one/section_last/index.html
, but instead a lot of files are published to the root of the public folder.Using other variables work fine, e.g.:
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
The text was updated successfully, but these errors were encountered: