{% assign num_featured_software = site.featured_software | size %} {% assign num_featured_specs = site.featured_specs | size %} {% assign num_posts = site.num_posts_combined %}
{% assign num_posts_specs = num_posts | plus: num_featured_specs %}
{% for section_name in site.landing_priority %}
{% if section_name == "specs" and num_featured_specs > 0 %} {% include featured_specs.html %} {% elsif section_name == "software" and num_featured_software > 0 %} {% include featured_software.html %} {% elsif section_name == "blog" and num_posts > 0 %} {% include featured_posts.html %} {% elsif section_name == "custom_intro" %} <section class="custom-intro"> {% include custom-intro.html %} </section> {% endif %}
{% endfor %}