Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
About variable "page.excerpt" #1143
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
Edit: You can also use this hexo-front-matter-excerpt plugin to define the excerpt in the front matter with whatever content you want.
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