mirror of https://github.com/jkjoy/sunpeiwen.git
784 B
784 B
hexo-post-link
🔗 Refer to your internal posts with a native markdown syntax.
No need to include ugly tags like post_link anymore.
Before
{% post_link your-post-slug 'Your link to post text' %}
With plugin installed
[Your link to post text](your-post-slug)
Both will be rendered as
<a href="/your-post-slug/">Your link to post text</a>
Installation
$ npm i hexo-post-link
# or
$ npm install hexo-post-link --save
Acknowledgement
- hexo-filter-link-post plugin which was used as a boilerplate code
- Nice article on Hexo plugins