Closed yoshi0808 closed 7 months ago
hexo version
post_link tag works in Hexo6.3,but it doesn't work in Hexo 7.x.
click the link, then error occured "Cannot GET file-path/" in the browser.
Include " {% post_link filename %}" in markdown.
Safe mode
Yes
$ node -v && npm -v v21.7.1 10.5.0
$ npm ls --depth 0 hexo-site@0.0.0 /Users/yoshi/git/new-technology ├── @next-theme/plugins@8.19.2 ├── hexo-deployer-git@4.0.0 ├── hexo-filter-emoji@2.2.2 ├── hexo-generator-archive@2.0.0 ├── hexo-generator-category@2.0.0 ├── hexo-generator-feed@3.0.0 ├── hexo-generator-index@3.0.0 ├── hexo-generator-searchdb@1.4.1 ├── hexo-generator-sitemap@3.0.1 ├── hexo-generator-tag@2.0.0 ├── hexo-renderer-ejs@2.0.0 ├── hexo-renderer-less@4.0.0 ├── hexo-renderer-marked@6.2.0 ├── hexo-renderer-stylus@3.0.1 ├── hexo-server@3.0.0 ├── hexo-tag-qrcode@1.0.0 ├── hexo-theme-next@8.19.2 ├── hexo-util@3.2.0 ├── hexo@6.3.0 ├── textlint-rule-preset-ja-spacing@2.3.1 ├── textlint-rule-preset-ja-technical-writing@10.0.1 ├── textlint-rule-preset-jtf-style@2.3.14 ├── textlint-rule-spellcheck-tech-word@5.0.0 └── textlint@14.0.3
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": "6.3.0" }, "dependencies": { "@next-theme/plugins": "^8.19.2", "hexo": "^6.3.0", "hexo-deployer-git": "^4.0.0", "hexo-filter-emoji": "^2.2.2", "hexo-generator-archive": "^2.0.0", "hexo-generator-category": "^2.0.0", "hexo-generator-feed": "^3.0.0", "hexo-generator-index": "^3.0.0", "hexo-generator-searchdb": "^1.4.1", "hexo-generator-sitemap": "^3.0.1", "hexo-generator-tag": "^2.0.0", "hexo-renderer-ejs": "^2.0.0", "hexo-renderer-less": "^4.0.0", "hexo-renderer-marked": "^6.2.0", "hexo-renderer-stylus": "^3.0.1", "hexo-server": "^3.0.0", "hexo-tag-qrcode": "^1.0.0", "hexo-theme-next": "^8.19.2", "hexo-util": "^3.2.0" }, "devDependencies": { "textlint": "^14.0.3", "textlint-rule-preset-ja-spacing": "^2.3.1", "textlint-rule-preset-ja-technical-writing": "^10.0.1", "textlint-rule-preset-jtf-style": "^2.3.14", "textlint-rule-spellcheck-tech-word": "^5.0.0" } }
_config.yml
No response
I use theme-next.
cannot reproduce
I cannot reproduced your case and no one provides enough information, I am going to close this issue.
If the problem still exists, please reopen this issue and provide more information.
Check List
hexo version
to check)Expected behavior
post_link tag works in Hexo6.3,but it doesn't work in Hexo 7.x.
Actual behavior
click the link, then error occured "Cannot GET file-path/" in the browser.
How to reproduce?
Include " {% post_link filename %}" in markdown.
Is the problem still there under
Safe mode
?Yes
Your Node.js & npm version
Your Hexo and Plugin version
Your
package.json
Your site's
_config.yml
(Optional)No response
Others
I use theme-next.