Closed andrewboni closed 9 years ago
1,hexo n "This is an Awesome Blog Post"
2,hexo n "THIS IS AN AWESOME BLOG POST"
3,hexo n "This Is An AwEsOme Blog PoSt"
the slug attribute is related to the basename of .md file created by running `hexo n
if [1,2,3]==> the same style filename `this-is-an-awesome-blog-post.md` :
see: hexo/lib/plugins/console/new.js
if [1,2,3] !==> the same style filename `this-is-an-awesome-blog-post.md` but have the same slug `this-is-an-awesome-blog-post`:
see: hexo/lib/plugins/console/processor/post.js
the hexo n <name> -s <slug>
the permalink attribute in front-matter
also affect the slug attribute
you know what i mean? P.S.英语不好,表达的不清楚请见谅 :)
The titlecase
setting is used in post title, not here. You should use filename_case
setting instead.
The docs claim that the slug & filename will be lowercase, but this is not the case :( wish it were
titlecase: false
And it will be OK.
I confirm titlecase
setting in Hexo _config.yml
works.
Please close this issue.
Setting filename_case to 1
did the trick for me!
If I write the following:
The slug that is generated is
/2014/06/15/This-is-an-Awesome-Blog-Post/
, which is different from the behavior of, say, Octopress. Octopress automatically lowercases all slugs (as do most other static blogs and CMSs).I realize that there is the
titlecase: true
options in_config.yml
, but many times I want custom capitalization in my titles.The ideal scenario would be:
/2014/06/15/this-is-an-awesome-blog-post/
Thoughts?