I have the following liquid code:
{%- for page in site.articles -%}
{%- if page.preview -%}
<h2>foo</h2>
<h3>bar</h3>
{%- endif -%}
{%- endfor -%}
It produces this result:
<h2>foo</h2>
<div class="highlighter-rouge"><div class="highlight"><pre class="highlight"><code><h3>bar</h3>
</code></pre></div></div>
when I am expecting it to produce:
<h2>foo</h2>
<h3>bar</h3>
Is there a way to properly indent my for loop and if statement, and have it produce the correct result? Or should I just not indent liquid control structures?