-
-
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
Content adapters clip path after last dot #12493
Comments
Test case: func TestFoo(t *testing.T) {
t.Parallel()
files := `
-- hugo.toml --
disableKinds = ['home','section','rss','sitemap','taxonomy','term']
-- content/_content.gotmpl --
{{ .AddPage (dict "path" "s-1.2.3/p-4.5.6" "title" "p-4.5.6") }}
-- layouts/_default/single.html --
{{ .Title }}
`
b := hugolib.Test(t, files)
b.AssertFileExists("public/s-1.2.3/p-4.5.6/index.html", true)
} |
@marchof You can work around this by setting |
@jmooring Thanks for the quick response and the hint! Just for my understanding: Is the |
This is marked as a bug, so it will be fixed. |
Also update Hugo to 0.126.1 due to gohugoio/hugo#12493
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. |
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
Description
First of all, many thanks for providing content adapters with the latest release! This is a great addition for data driven sites like https://javaalmanac.io/
I started replacing generated markdown files with content adapters. Some of the paths contains dots, for example:
https://javaalmanac.io/jdk/6/apidiff/1.4/
Now I started dynamically creating these pages, using for example a
path
ofjdk/6/apidiff/1.4/
to generate the page above.Expected behavior
The content is created at
jdk/6/apidiff/1.4/index.html
Actual Behaviour
The content is created at
jdk/6/apidiff/1/index.html
So for me it looks like the path is clipped at the last dot (
.
). I tried with different paths likeaaa/bbb.ccc/
which is also clipped toaaa/bbb
.The text was updated successfully, but these errors were encountered: