<div id="{{ include.id }}" class="examples__container {{ include.class }}">
  <nav class="examples__nav">
    <div class="hidden-navs">
      {% for example in site.data.examples %}
        {% if include.example_id == nil or include.example_id == example.id %}
          {% assign render_example = false %}
          
          {% if example.display_in_examples == nil or example.display_in_examples == true %}
            {% assign render_example = true %}
          {% endif %}

          {% if render_example %}
            <div
              class="examples__nav-item nav-{{ example.id }}"
              data-id="{{ example.id }}"
              data-name="{{ example.name }}"
              data-url="{{ site.github_api_url }}{{ example.url }}"
              >
              <img src="{{ site.baseurl }}{{ example.image }}" alt="{{ example.name }}" />
            </div>
          {% endif %}
        {% endif %}
      {% endfor %}
    </div>

    {% if include.example_id == nil %}
      <div class="hidden-navs__static-links">
        <a
          href="https://github.com/gruntwork-io/terratest/tree/main/examples"
          class="examples__nav-item static-link nav-{{ example.id }}"
          target="_blank"
          >
          See more examples
        </a>
      </div>

      <div class="navs">
        <div class="navs__visible-bar"></div>
        <div class="navs__dropdown-input"></div>
        <div class="navs__dropdown-arrow">
          <span class="glyphicon glyphicon-menu-down"></span>
        </div>
        <div class="navs__dropdown-menu"></div>
      </div>
    {% endif %}
  </nav>

  {% for example in site.data.examples %}
    {% if include.example_id == nil or include.example_id == example.id %}
      {% assign render_example = true %}
      
      {% if render_example %}
        {% include examples/example.html example=example file_id=include.file_id skip_learn_more=include.skip_learn_more skip_view_on_github=include.skip_view_on_github skip_tags=include.skip_tags snippet_id=include.snippet_id %}
      {% endif %}
    {% endif %}
  {% endfor %}

</div>
