About variable "page.excerpt" #1143
Comments
Same issue with posts. I tracked the offending code to the regex in I'm using this code until this is patched. It works for me but has not been tested on anything but my theme. |
Use a html comment with the word "more" to mark the excerpt of your post, like this:
All the text after the 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! |
@bvodola thanks brother, you help me! thanks |
it works! thanks @bvodola |
@bvodola thanks |
I am also having an error rendering the post.excerpt. I specified more in my blog posts but when I look at the source, excerpt is always set to an empty string, despite the more html comment. This is the code I am using to grab the excerpt that does not render it. I am using
|
when I try to get the value of
page.excerpt
by <%= page.excerpt %>, there's nothing out.So where to define
page.excerpt
?The text was updated successfully, but these errors were encountered: