Hexo Front Matter Excerpt
A Hexo plugin to allow writing post excerpts using YAML front matter.
In Hexo, post excerpts are usually specified by adding the
<!-- more --> tag to your post content.
--- title: "Example Post" --- This is my post excerpt <!-- more --> Man, I really love writing posts on my nifty blog!
By using the Hexo Front Matter Excerpt plugin, you can specify a post's excerpt in its front matter.
--- title: "Example Post" excerpt: "This is my post excerpt" --- Man, I really love writing posts on my nifty blog!
Now, "This is my post excerpt" will be available by calling
.excerpt on this post.
This plugin will override the excerpt created by using Hexo's built in
<!-- more --> tag.
This plugin supports definition of
<!-- more --> and using YAML front matter. If an excerpt is specified using the
<!-- more --> tag, it will override an excerpt specified using YAML front matter if there is one. If niether are defined,
post.excerpt will be
Development & Contributing
- Add your feature to
- Write a test for your feature in
- Run your test with
node_modules/.bin/jasminefrom the command line
- Submit a pull request