{% extends "_layout" %}

{% block content %}

{% set entry = craft.entries.slug("__home__").one() %}

{% for block in entry.contentBlocks.all() %}

  {% switch block.type %}

      {% case "hero" or
              "featureIcons" or
              "singleFeature" or
              "testimonial" %}

        {% include '_includes/blocks/_' ~ block.type ~ '.twig' with { 'block': block } %}

      {% default %}

  {% endswitch %}

{% endfor %}

{% endblock %}
