hexojs / hexo

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

fix: post_link behaviour when using subdir #5419

Closed leafbird closed 7 months ago

leafbird commented 7 months ago

What does it do?

When subdir is used, the generated URL ignores it, creating an incorrect link. If the value of config.url does not end with '/', this was added to create a correct link.

fix #5383

Screenshots

Pull request tasks

github-actions[bot] commented 7 months ago

How to test

git clone -b master https://github.com/leafbird/hexo.git
cd hexo
npm install
npm test
coveralls commented 7 months ago

Pull Request Test Coverage Report for Build 7861542090

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details


Totals Coverage Status
Change from base Build 7691789796: 0.0%
Covered Lines: 9318
Relevant Lines: 9362

💛 - Coveralls
github-actions[bot] commented 7 months ago

flamegraph

https://50d61e7fb03708f28801e479573d00fe0c8b267f-14-hexo.surge.sh/flamegraph.html https://50d61e7fb03708f28801e479573d00fe0c8b267f-16-hexo.surge.sh/flamegraph.html https://50d61e7fb03708f28801e479573d00fe0c8b267f-18-hexo.surge.sh/flamegraph.html