layout: default

{% assign collection = page.collection %}

{%- if page.lang -%}

{% assign items = site[collection] | where: "lang", page.lang %}

{%- else -%}

{% assign items = site[collection] %}

{%- endif -%}

<div class=“row”>

{% for item in items %}
   <div class="col w-full sm:w-1/2 md:w-1/3 entries-{{ collection }}">
      <a href="{{ item.url }}" class="card p-5 bg-gray-50 dark:bg-gray-800 hover:shadow-lg rounded-md relative transition-all border-t-4 border-primary-600 block mb-3">
         <h2 class="text-gray-800 dark:text-gray-100 text-xl mb-3">{{ item.title }}</h2>
         <p class="text-gray-500">{{ item.excerpt }}</p>
      </a>
   </div>
{% endfor %}

</div>