hexojs / hexo

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

Added URL hash support for post_link tag #5356

Closed iliayatsenko closed 7 months ago

iliayatsenko commented 7 months ago

What does it do?

Supports using post_link tag with urls containing hashes. For example {% post_link my-post-slug#my-hash 'My Linked Post Title' %}.

This PR resolves https://github.com/hexojs/hexo/issues/5333

Screenshots

--

Pull request tasks

github-actions[bot] commented 7 months ago

How to test

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

Pull Request Test Coverage Report for Build 6928927438

Warning: This coverage report may be inaccurate.

We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report. To ensure accuracy in future PRs, please see these guidelines. A quick fix for this PR: rebase it; your next report should be accurate.


Totals Coverage Status
Change from base Build 6787520040: 0.001%
Covered Lines: 9006
Relevant Lines: 9048

💛 - Coveralls