Mention :name in Permalink config
SukkaW opened this issue · 1 comments
SukkaW commented
https://hexo.io/docs/permalinks
:title
refers to the post source file path relative to source/_posts
while :name
is the exactly filename.
SukkaW commented
Example:
# _config.yml
url: https://example.com
root: /
permalink: :title/
source/_posts/hello-world.md => https://example.com/hello-world/
source/_posts/2019/hello-world.md => https://example.com/2019/hello-world/
# _config.yml
url: https://example.com
root: /
permalink: :name/
source/_posts/hello-world.md => https://example.com/hello-world/
source/_posts/2019/hello-world.md => https://example.com/hello-world/