Skip to content
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 support for backslash escaping in url and permalinks #12938

Merged
merged 2 commits into from
Oct 15, 2024

Conversation

n1xx1
Copy link
Contributor

@n1xx1 n1xx1 commented Oct 14, 2024

Fixes #12918. I didn't improve the error handling because the go date formatting tokens are supported. If you have something like :example1 it would be a valid format since 1 is the number of the month. I think leaving the invalid token error as is is better.

resources/page/permalinks.go Outdated Show resolved Hide resolved
@n1xx1 n1xx1 changed the title Add support for backslash escaping and wikititle in url and permalinks Add support for backslash escaping in url and permalinks Oct 14, 2024
@bep bep force-pushed the fix-permalink-ill-formed branch 3 times, most recently from dfc51d1 to 3bbe9fc Compare October 15, 2024 07:40
n1xx1 and others added 2 commits October 15, 2024 09:52
Mostly to get back to an attribute regexp that's reasonably simle to read/understand.

Updates gohugoio#12918
@bep bep merged commit 6e1c5b6 into gohugoio:master Oct 15, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v0.131.0 Permalinks tokens break previous behavior
2 participants