hexo-excerpt-block
A plugin for hexo, enable mark excerpt block in post easily. However, the excerpt will remain.
Inspired by fuchen/hexo-less.
Install
npm install --save hexo-excerpt-block
Usage
Add one or two <!-- block -->
to your post file. It will be used as an excerpt before or between the block tag.
Example
Method 1 - between two block tags
---title: Example post--- ## This is an example post. <!-- block -->Here is excerpt block.It's easy to use.<!-- block --> Some contents.
Excerpt:
Here is excerpt block.It's easy to use.
Method 2 - before one block tag
---title: Example post--- This is an example post. Before block tag will be used as an excerpt.<!-- block --> Some contents.
Excerpt:
This is an example post. Before block tag will be used as an excerpt.
Q&A
Q: Is this package compatible with fuchen/hexo-less?
A: Yes. But only one method in a post.
License
MIT