-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
A more universal variable system both front-matter + file name + permalinks. #649
Comments
OK. I'll try to implement this feature in 2.7. |
I think it would also be wise to have some kind of "Hook" that allowed plugins to manipulate these variables before they're used, kind of like a "Middleware". This would allow me to have a post named |
@reggi Hexo has "Filter" currently. But it's still weak. This part will be enhanced in future. |
This feature will be released in 2.8. |
:D great!
|
Thank you so much for implementing. This works like a charm! 👍 |
This is a feature request, for a way to standardize the variable system. It revolves around the idea that any variable can be set within the post file-name and within the YML front-matter and that these variables can be both used in the layouts and in the permalink, (any place a variable can be used).
Here's an example of my
config
file.Given the example file name:
It's rendering out the url to:
I would expect it to be:
It would be nice if the YML front-matter variables could be used for the permalink as well (a priority would need to take place between file-name and front-matter).
for instance.
Or without setting it in the
md
post and it just being in the file name, being able to use thecrazyid
variable within the template / layout would be more universal.The text was updated successfully, but these errors were encountered: