DougBeney / jekyll-pug

Jekyll Plugin That Allows You To Use Pug
MIT License
37 stars 2 forks source link

Liquid support in jekyll-bliss ? #21

Closed ianmihura closed 4 years ago

ianmihura commented 4 years ago

Hey there! I'm rising the issue here, cause in your jekyll-bliss repo you don't seem to have issue tab enabled.

Anyhow, the issue I am getting is reproducing itself both in jekyll-pug and jekyll-bliss It's this type of error, when I try to compile a piece of liquid code (with the | selector)

Error: _includes\this-is-a-silly-hack.pug:11:1
    9|
    10|         | {% if true %}
  > 11|             p this
--------^
    12|         | {% endif %}

unexpected token "indent"

Doesn't seem to allow for liquid elements? Same thing happens when using a {% for ... %}. Yet the | {% include ... %} works just fine. I've also tried with no pipe, with two pipes, with no {%%}, to different results, yet none a successful compile.

Do you have any insight into this? Developing jekyll with no liquid support is a definitive killer.

DougBeney commented 4 years ago

Fixed the issues tab. Good catch. :)

Yeah, so your problem there is indenting into a pipe. Do this instead:

| {% if true %}
p this
| {% endif %}
ianmihura commented 4 years ago

Nice, thanks! Seems like foolish mistake after all.

DougBeney commented 4 years ago

No problem! Thank you for using this software.