-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
feat: add :contentbasename permalink token #13382
Conversation
resources/page/permalinks_test.go
Outdated
{"/:contentbasename/", true, "/index/"}, // Content base name | ||
{"/:contentbasenameorslug/", true, "/index/"}, // Content base name or slug |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that, for the test files, the component
is not defined for paths, meaning that here we just get the filename (without extension) instead of the parent file's name as we'd get inside the content
directory.
cfc6d65
to
5c0cbfe
Compare
Tests seem to be failing with unrelated errors:
|
5c0cbfe
to
0700e01
Compare
`:contentbasename`: 1. ContentBaseName 2. Slug or title `:slugorcontentbasename`: 1. Slug 2. ContentBaseName 3. Title Closes #11722
0700e01
to
241a9f7
Compare
`:contentbasename`: 1. ContentBaseName 2. Slug or title `:slugorcontentbasename`: 1. Slug 2. ContentBaseName 3. Title Closes #11722
I will wrap this up in #/13402 |
Adds changes described in #11722 (comment), except for the deprecation of
:filename
.