oybek
oybek

Reputation: 650

Jekyll liquid split by '---'

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

Answers (1)

Keith Mifsud
Keith Mifsud

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

Related Questions