rustygeldmacher / jekyll-contentblocks

A Jekyll plugin giving you something like Rails' content_for
MIT License
150 stars 13 forks source link

Liquid Exception: 'contentfor' tag was never closed #18

Open k-funk opened 8 years ago

k-funk commented 8 years ago

Liquid Exception: Liquid syntax error (line 1): 'contentfor' tag was never closed in <filename>.html/#excerpt

This occurs whenever I have two \n's next to each other. I've been putting html in these blocks, which is sometimes rather bulky, so black newlines help readability, but it seems to break jekyll/jekyll-contentblocks. Any idea why, and if there's a setting/fix to allow blank lines?

rustygeldmacher commented 8 years ago

Hi @k-funk this is an interesting one -- is there a way you could create a repo or a gist for me that demonstrates this happening? Then I'll look into it, thanks!

k-funk commented 8 years ago

Rather than making a repo, I'll post you some links, as it's a known issue. http://blog.slaks.net/2013-08-09/jekyll-tag-was-never-closed/ https://github.com/jekyll/jekyll/issues/1401 Let me know if you still need an example repo