Lego2012
10/24/2016 - 4:53 PM

Includes with Page Loops and Parameters

Includes with Page Loops and Parameters

<ul>
 {% for planet in site.pages %}
  {% if planet.typ == include.type %}
   <li>
    {{ planet.title }}
   </li>
  {% endif %}
{% endfor %}
</ul>
<h1>Planets</h1>

<h2>Dwarf</h2>
{% include planet-list.html type='dwarf' %}

<h2>Terrestrial</h2>
{% include planet-list.html type='terrestrial' %}

<h2>Gas Giants</h2>
{% include planet-list.html type='gas-giant' %}