A plugin for hexo, enable mark excerpt block in post easily. However, the excerpt will remain.
Inspired by fuchen/hexo-less.
npm install --save hexo-excerpt-block
Add one or two <!-- block --> to your post file. It will be used as an excerpt before or between the block tag.
---
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.
---
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: Is this package compatible with fuchen/hexo-less?
A: Yes. But only one method in a post.
MIT