Skip to content
master
Go to file
Code
This branch is 5 commits ahead of fuchen:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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

About

A plugin for hexo, enable mark excerpt block in post easily.

Topics

Resources

License

You can’t perform that action at this time.