hexo-post-link
v1.0.0
Published
Automatically convert markdown links with post slugs to proper internal URLs.
Downloads
27
Readme
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