Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Possible to change URLs of posts, tags, etc, from a Script (plugin)? #3849
I would like to know, is it possible to re-route or modify an item's path from a Script?
Although I can change default paths in the
Note, I am not talking about hexo-pagination or generating a new page.
I only want to change URLs of items (e.g. posts), return them, and allow Hexo to continue.
Any ideas would be much appreciated.
For example, I have custom pagination for pages, posts, and tags based on categories and localization.
But the URLs for the tag pages do not change. Pagination and model paths are separate.
So, when I embed tag URLs into a page (
It would be correct and proper to be able to change the path of tag items with a Plugin Script.
It might be possible to allow this by overriding the