hexojs / hexo

A fast, simple & powerful blog framework, powered by Node.js.

Home Page:https://hexo.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The "#" character is not supported in file names, which may result in the path not being found.

ihuadz opened this issue · comments

Check List

  • I have already searched existing issues.
  • I have already read Docs page.

Feature Request

I hope the issue with file names containing special characters like "#" can be fixed. When writing articles about C#, I encounter this problem. Although I can use "CSharp" as a substitute, I hope this can make the product better and better.

Others

No response

#

hexo normally generates files with # in the file name. # will be treated by the browser as an anchor instead of a path. This is not caused by hexo.

#

hexo normally generates files with # in the file name. # will be treated by the browser as an anchor instead of a path. This is not caused by hexo.

I see what you mean, I'm wondering if this can be solved by url encoding when generating file names that contain special characters ^-^

# is a legal character in URL. Neither url api nor encodeurl() escape it

For individual post, you can define permalink in Front-matter

For individual post, you can define permalink in Front-matter

Understood, thank you