-
-
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
v0.131.0 Permalinks tokens break previous behavior #12918
Comments
As I see it, there are (at least) 2 issues here:
Hmm ... I see 3 options ...
I'm not a fan of 1) and we should probably do 2) even if we also do 3), so I guess we can start with that as a fix + improving the parsing and error message... |
LGTM |
Mostly to get back to an attribute regexp that's reasonably simle to read/understand. Updates gohugoio#12918
Mostly to get back to an attribute regexp that's reasonably simle to read/understand. Updates gohugoio#12918
Mostly to get back to an attribute regexp that's reasonably simle to read/understand. Updates gohugoio#12918
Mostly to get back to an attribute regexp that's reasonably simle to read/understand. Updates gohugoio#12918
Mostly to get back to an attribute regexp that's reasonably simle to read/understand. Updates #12918
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. |
Permalinks tokens are extremely useful, and I had a couple of places, they would be beneficial. Tere is currently just one issue. They break most of my page.
Instead of running a full-blown wiki, we went with doing that in hugo. To get roughly the same behavior as Wikipedia would, I used the same URL style. This includes colons in the URL.
Since I couldn't find anything where I could transform the
title
into it, I addedurl
to every wiki page like the following.Because I was unable to find any workarounds and I consider the wiki URL to be a key feature, I can't upgrade to >= v0.131.0.
Would it be possible to add something like a raw
url
feature to hugo that behaves likeurl
did prior to v0.131.0?Alternatively, if that use case would be interesting for others, something like a
:wikititle
permalink token, that would replicate the behavior I'm looking for (e.g. do the same as:title
would, but replace whitespace with underscores and keep the letter case)?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: