Change Jekyll Default excerpt_separator
Jekyll will take first part of a blog post and display it. The break point is called excerpt_separator,
The default excerpt_separator is “\n\n”, see jekyll configuration. The ruby file provide this configure is in configuration
While using “\n\n”, posts will be most likely break at very early part. Due to heavy usage or new lines in markdown.
Fortunately we can configured it in file _config.yml
like
excerpt_separator: "<!-- readmore -->"
So that in posts, we can specify the break point manually by type in <!-- readmore -->
manually
NOTE: The quote is important when configure it. Use like \n\n\n will have no effect.
Written on February 26, 2018