1 2 3 4 5 6 7 8 9 10 11 12 13 14
| Use a html comment with the word "more" to mark the excerpt of your post, like this:
title: post title --- This part is the excerpt, get it with the <%- post.excerpt %> <!-- more --> This is the rest of the post. You can get it with <%- post.more %> All the text after the <!-- more --> is only displayed when you view the page of the post.
Font: https://groups.google.com/forum/#!topic/hexo/cdbCM0lb9A0
Edit: You can also use this hexo-front-matter-excerpt plugin to define the excerpt in the front matter with whatever content you want.
Cheers!
|