Open 45gfg9 opened 7 months ago
This is indeed a solution, but I suggest renaming this option to something like dirname
. In Hexo's design, a post's path is a getter, which is calculated based on the permalink. Using a parameter named path
in the permalink would cause confusion.
Check List
Feature Request
So this feature request is essentially #5263, but I think it might be useful to others as well. I am using Hexo 7.1.1.
How about making
:path
a valid permalink component, just like:name
where you have the filename of the source?My current permalink setup is:
which yields something like
https://example.com/path/to/012345abcdef/
.I'm no Hexo or JavaScript pro, so to me it doesn't look too complex. All I did to make this setup work is to add a single line:
Again, I'm not sure if this will have any negative consequences, just "it works for me." Any ideas?
Others
No response