-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Open
Labels
Description
Check List
- I have already read Docs page & Troubleshooting page.
- I have already searched existing issues and they are not help to me.
- I examined error or warning messages and it's difficult to solve.
- I am using the latest version of Hexo. (run
hexo version
to check) - My Node.js is matched the required version.
Expected behavior
I have articles in various formats, such as Markdown (.md) and AsciiDoc (.adoc). However, due to the code at this link, when the post_asset_folder is enabled, only articles with the same extension as defined in new_post_name can be rendered. Other types of documents are treated as asset files and ignored. I want articles with different file extensions to be rendered correctly.
Actual behavior
My new_post_name setting is "year:month:day-:title.md", so only Markdown articles with the .md format are rendered, while other articles are ignored.
How to reproduce?
- Enable post_asset_folder
- Create articles with different file extensions
- hexo g
Is the problem still there under Safe mode
?
yes
Your Node.js & npm version
node: v18.2.0
pnpm: 9.4.0
Your Hexo and Plugin version
dependencies:
hexo 7.3.0 hexo-generator-archive 2.0.0 hexo-generator-tag 2.0.0 hexo-renderer-marked 6.3.0
hexo-asset-img 1.1.0 hexo-generator-category 2.0.0 hexo-renderer-asciidoc 2.2.0-dev.1 hexo-renderer-stylus 3.0.1
hexo-deployer-git 4.0.0 hexo-generator-index 3.0.0 hexo-renderer-ejs 2.0.0 hexo-server 3.0.0
Your package.json
{
"name": "hexo-site",
"version": "0.0.0",
"private": true,
"scripts": {
"build": "hexo clean && hexo generate --debug",
"clean": "hexo clean",
"deploy": "hexo deploy",
"server": "hexo server"
},
"hexo": {
"version": "7.3.0"
},
"dependencies": {
"hexo": "^7.3.0",
"hexo-asset-img": "^1.1.0",
"hexo-deployer-git": "^4.0.0",
"hexo-generator-archive": "^2.0.0",
"hexo-generator-category": "^2.0.0",
"hexo-generator-index": "^3.0.0",
"hexo-generator-tag": "^2.0.0",
"hexo-renderer-asciidoc": "2.2.0-dev.1",
"hexo-renderer-ejs": "^2.0.0",
"hexo-renderer-marked": "^6.3.0",
"hexo-renderer-stylus": "^3.0.0",
"hexo-server": "^3.0.0"
}
}
Your site's _config.yml
(Optional)
No response
Others
No response