hexojs / hexo

A fast, simple & powerful blog framework, powered by Node.js.
https://hexo.io
MIT License
39.57k stars 4.86k forks source link

"post_link" tag doesn't work #5432

Closed yoshi0808 closed 7 months ago

yoshi0808 commented 8 months ago

Check List

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

$ node -v && npm -v
v21.7.1
10.5.0

Your Hexo and Plugin version

$ 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

Your 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"
  }
}

Your site's _config.yml (Optional)

No response

Others

I use theme-next.

uiolee commented 7 months ago

cannot reproduce

uiolee commented 7 months ago

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.