Reputation: 650
I'm looking for code to split content of md file when generating jekyll site by string '---'
.
When I do {% assign blocks = content | split:'<!--break-->' %}
all is ok.
But {% assign blocks = content | split:'---' %}
not working, how to be?
Upvotes: 1
Views: 391
Reputation: 1618
The three dashes are needed to split your frontmatter from the content. You'll need to use another string as a separator.
Upvotes: 2