-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Allow permalinks configuration syntax to url
Front Matter.
#9714
Comments
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. |
Sorry for the ... very late response. I like this. |
This would be excellent. |
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. |
Currently
Currently, batch permalink settings can only happen through the site's config's
permalinks
object. For every setting, it takes a content directory as key and a string that can include "template strings" syntax as value.To set the permalink of the
/recipe
directory using the slug:That is limiting to batch editing content files of a root directory. The recent
:sections
templates brought more power to the desired permalink but did not fully resolve the limited "targeting" of the batch. For example, if your content files are in a subdirectorycontent/cooking/recipe
, you would have no way (at least I did not find one) to target the files in the directory to batch assign a permalink structure.The proposal
Allow the
url
Front Matter key to use the same syntax as permalink's configuration.The text was updated successfully, but these errors were encountered: