hexo-excerpt-block

1.0.0 • Public • Published

hexo-excerpt-block

Travis (.org) npm version Coveralls github

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

Package Sidebar

Install

npm i hexo-excerpt-block

Weekly Downloads

1,017

Version

1.0.0

License

MIT

Unpacked Size

6.84 kB

Total Files

12

Last publish

Collaborators

  • aliangliang