<article {!! post_class('teaser-search') !!}>
  <figure>
    @if (has_post_thumbnail())
      <a href="{!! the_permalink() !!}" title="{!! the_title() !!}">
        <img
          class="lazy"  
          src=""
          data-src="{!! get_the_post_thumbnail_url(get_the_ID(), 'mini') !!}"

        />
      </a>
    @endif
  </figure>
  <div class="preview-content">
    <header>
      <a href="{{ get_permalink() }}">
        <h3 class="preview-title">
          {!! get_the_title() !!}
        </h3>
      </a>  
    </header>

    <div class="preview-summary">
      @php the_excerpt() @endphp
    </div>

    @if (get_post_type() === 'post')
      <time
        class="updated"
        datetime="{{ get_post_time('c', true) }}">
        {{ get_the_date() }}
      </time>
    @endif
  </div><!--preview-content-->
</article>
