mirror of https://github.com/jkjoy/sunpeiwen.git
5d2d87c740 | ||
---|---|---|
.. | ||
lib | ||
.editorconfig | ||
CHANGELOG.md | ||
LICENSE | ||
README.md | ||
package.json |
README.md
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