@php
  $terms = get_the_terms($post->ID, 'decors-category');
@endphp

<article {{post_class('teaser-decors')}}>
  @if (has_post_thumbnail($post))
    <figure>
      <a href="{{ get_permalink($post) }}" title="{!! get_the_title($post) !!}">
        <img
          class="lazy"
          src="{!! get_the_post_thumbnail_url($post, 'mini') !!}"
          data-src="{!! get_the_post_thumbnail_url($post, 'large') !!}"
        />
      </a>
    </figure>
  @endif
  
  <header>
    <a href="{{ get_permalink($post) }}" title="{!! get_the_title($post) !!}">
      <h2>
        {!! get_the_title($post) !!}
      </h2>
    </a>
    @if($terms)
      <div class="category">
          @if($terms && $show_category)
              @foreach($terms as $key => $term)
                  @if($key > 0)
                      {!! __('/', 'thor') !!}
                  @endif
                  {!! $term->name !!}
              @endforeach
          @endif
      </div>
    @endif
  </header>
</article>
