A plugin for hexo, enable mark excerpt block in post easily.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 4 commits ahead of fuchen:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE Create LICENSE Jun 17, 2017
README.md Update README.md Jun 19, 2017
index.js Change to hexo-excerpt-block Jun 17, 2017
package.json Change to hexo-excerpt-block Jun 17, 2017

README.md

hexo-excerpt-block

npm version

A plugin for hexo, enable mark excerpt block in post easily. Inspired by fuchen/hexo-less.

Install

npm install --save hexo-excerpt-block

Usage

Add one or two <!-- block --> to your post file. Before or between these will be used as an excerpt.

Example

Method 1

---
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

---
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.