We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hexo version
`INFO Created: ~/work/jisaku-club/blog/source/_posts/2019-11-19_test.md
INFO Created: ~/work/jisaku-club/blog/source/_posts/2019-11-undefinedtest.md
Node.js & npm version
node v12.13.0 npm 6.13.0
Your site _config.yml (Optional)
_config.yml
new_post_name: ':year-:month-:day_:title.md' # File name of new posts
Hexo and Plugin version(npm ls --depth 0)
npm ls --depth 0
hexo-site@0.0.0 /home/tetsuyainfra/work/jisaku-club/blog ├── hexo@4.0.0 ├── hexo-deployer-git@2.0.0 ├── hexo-generator-archive@1.0.0 ├── hexo-generator-category@1.0.0 ├── hexo-generator-index@1.0.0 ├── hexo-generator-tag@1.0.0 ├── hexo-renderer-ejs@1.0.0 ├── hexo-renderer-marked@2.0.0 ├── hexo-renderer-stylus@1.1.0 └── hexo-server@1.0.0
Your package.json package.json
package.json
{ "name": "hexo-site", "version": "0.0.0", "private": true, "scripts": { "build": "hexo generate", "clean": "hexo clean", "deploy": "hexo deploy", "server": "hexo server" }, "hexo": { "version": "4.0.0" }, "dependencies": { "hexo": "^4.0.0", "hexo-deployer-git": "^2.0.0", "hexo-generator-archive": "^1.0.0", "hexo-generator-category": "^1.0.0", "hexo-generator-index": "^1.0.0", "hexo-generator-tag": "^1.0.0", "hexo-renderer-ejs": "^1.0.0", "hexo-renderer-marked": "^2.0.0", "hexo-renderer-stylus": "^1.1.0", "hexo-server": "^1.0.0" } }
When I followed the code, I found out that I could change regex key will be ok. https://github.com/hexojs/hexo-util/blob/master/lib/permalink.js#L5
But present code, variable keys already include '_'.
hexo/lib/plugins/filter/new_post_path.js
Lines 10 to 17 in eb33af0
I thought I could use the current key to regular expression, but it matter if the number of keys increases in the future.
I couldn't come up with a way to solve it.
The text was updated successfully, but these errors were encountered:
@tetsuyainfra 's comment is right. I think this behavior is a bug of hexo-util/lib/permalink.js.
hexo-util/lib/permalink.js
I make a new patch hexojs/hexo-util#139.
Sorry, something went wrong.
hexojs/hexo-util@745076c
Fix has been merged, please wait for its release in hexo-util 1.6.0.
No branches or pull requests
Check List
hexo version
to check)Expected behavior
`INFO Created: ~/work/jisaku-club/blog/source/_posts/2019-11-19_test.md
Actual behavior`
INFO Created: ~/work/jisaku-club/blog/source/_posts/2019-11-undefinedtest.md
How to reproduce?
Environment & Settings
Node.js & npm version
Your site
_config.yml
(Optional)Hexo and Plugin version(
npm ls --depth 0
)Your package.json
package.json
Others
When I followed the code, I found out that I could change regex key will be ok.
https://github.com/hexojs/hexo-util/blob/master/lib/permalink.js#L5
But present code, variable keys already include '_'.
hexo/lib/plugins/filter/new_post_path.js
Lines 10 to 17 in eb33af0
I thought I could use the current key to regular expression,
but it matter if the number of keys increases in the future.
I couldn't come up with a way to solve it.
The text was updated successfully, but these errors were encountered: