-
-
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
Add sensible fallback for permalink :token when not backed by a file #9448
Comments
We should try to pick a sensible fallback to the filename in this case, I'm not sure what (I have not looked at the options). |
The
Example config:
|
@jmooring thanks, I merged that permalink issue knowing that it needed some tweaking/testing. The gist of the above is that we should never see that warning from Hugo code. |
Fixes gohugoio#9448 Fixes gohugoio#11184 See gohugoio#8523
Fixes gohugoio#9448 Fixes gohugoio#11184 See gohugoio#8523
Fixes gohugoio#9448 Fixes gohugoio#11184 See gohugoio#8523
Fixes gohugoio#9448 Fixes gohugoio#11184 See gohugoio#8523
* Move config loading to the page package * Fix a lower bound panic for the `:sections` slice syntax. * Always return the `:title` * Add some permalinks integration tests * Also see issues below Fixes gohugoio#9448 Fixes gohugoio#11184 See gohugoio#8523
* Move config loading to the page package * Fix a lower bound panic for the `:sections` slice syntax. * Always return the `:title` * Add some permalinks integration tests * Also see issues below Fixes gohugoio#9448 Fixes gohugoio#11184 See gohugoio#8523
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. |
This is not a new warning; it exists as far back as v0.55.4, but does not exist in v0.54.0 (I didn't test those in between).
And the warning makes sense. But it took me a couple of minutes to figure out what was causing it.
With this content structure:
Where content/post/test.md has:
This is obviously resolved with:
This was a self-inflicted wound; I'm not even sure what the user was trying to accomplish.
Although the warning message is accurate...
http://localhost:1313/foo/
instead ofhttp://localhost:1313/foo/something
I'm not sure if this is just a documentation issue, or if we should substitute the slug when there isn't a backing file (if that's even possible) and throw a more descriptive warning.
MRE
git clone --single-branch -b hugo-github-issue-9448 https://github.com/jmooring/hugo-testing hugo-github-issue-9448 cd hugo-github-issue-9448 hugo server
The text was updated successfully, but these errors were encountered: