-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Front matter URL: two dashes get parsed into one - #6007
Comments
I don't think you can do anything about it. |
OK, so it's a bug then, not a feature (like I expected)? |
Let's take this at https://discourse.gohugo.io/t/front-matter-url-two-dashes-get-parsed-into-one/18979 -- I'm not a big fan of double posting. |
Actually I pointed the user to open this issue since this behavior seems like a reproducible bug. There was no double posting. |
related gohugoio#6007 (already closed)
docs: Regenerate docshelper Revert "docs: Regenerate docshelper" This reverts commit caf16c2. Closes gohugoio#7972 watcher: Add file deleted by accident See gohugoio#7972 resources: Preserve url set in frontmatter without sanitizing related gohugoio#6007 (already closed) Add menu params Fixes gohugoio#7951 docs: Regen docshelper build(deps): bump github.com/getkin/kin-openapi from 0.30.0 to 0.31.0 Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.30.0 to 0.31.0. - [Release notes](https://github.com/getkin/kin-openapi/releases) - [Commits](getkin/kin-openapi@v0.30.0...v0.31.0) Signed-off-by: dependabot[bot] <support@github.com>
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. |
Hi,
I discovered the following problem:
In my front matter I define a URL, let’s say:
url: my–test
What I would expect from to be the output of this would be a file called “my–test.html”.
Surprisingly the output is: "my**-**test.html.
Two dashes get turned into one, which is not what I would expect and need.
How I can prevent this from happening?
I run Hugo at version:
Hugo Static Site Generator v0.54.0/extended windows/amd64 (this happens also with Hugo 0.55.x as disscused here https://discourse.gohugo.io/t/front-matter-url-two-dashes-get-parsed-into-one/18979)
and configured it to use
canonifyURLs: true
Thanks for your help and best wishes,
Max
The text was updated successfully, but these errors were encountered: