{% include _utils/month date=post.date %}

<div class=“row mb-4”>

<div class="col-md-12">
  <div class="card">
    {% if post.image %}
      <div class="view overlay">
        <a href="{{ post.url | prepend: site.baseurl }}">
          <img src="{{ post.image | prepend: site.baseurl }}" class="card-img-top" alt="">
        </a>
      </div>
    {% endif %}
    <div class="card-body mx-4">
      <h4 class="card-title">
        <strong>{{ post.title }}</strong>
      </h4>
      <hr>
      <p class="dark-grey-text mb-3">
        {% if post.excerpt %}{{ post.excerpt }}{% endif %}
      </p>
      <p></p>
      <p class="font-small font-weight-bold blue-grey-text mb-1">
        <i class="fas fa-tags"></i> Categorii:
        {% capture container %}resurse/{% endcapture %}
        {% assign previous = "" %}
        {% for category in post.categories %}
            {% if forloop.first == false %}
                {% capture container %}{{ container }}{{ previous }}/{% endcapture %}
            {% endif %}
            {% assign previous = category %}
            <a href="{{ site.baseurl }}/{{container}}{{ category }}">
                <span class="label label-info">{{ category }}</span>
            </a>
        {% endfor %}
      </p>
      <p class="font-small font-weight-bold blue-grey-text mb-1">
        <i class="fas fa-clock"></i> Data:
        <time datetime="{{ post.date | date_to_xmlschema }}" itemprop="datePublished">
            {{ post.date | date: "%-d" }} {{ month }} {{ post.date | date: "%Y" }}
        </time>
      </p>
      <p class="text-right mb-0 text-uppercase dark-grey-text font-weight-bold">
        <a href="{{ post.url | prepend: site.baseurl }}">citește mai mult
          <i class="fas fa-chevron-right" aria-hidden="true"></i>
        </a>
      </p>
    </div>
  </div>
</div>

</div>