Sha256: 03ee86f6159acc1161a7a47773daa65e48144597d7bff190b1981d977d009c33
Contents?: true
Size: 1.49 KB
Versions: 5
Compression:
Stored size: 1.49 KB
Contents
{%- assign item = include.item -%} <a href="{{ item.url | relative_url }}" title="Go to {{ item.title }}" class="nav-link py-0"> <div class="row no-gutters mb-3 border rounded"> {% if item.header.teaser %} {% capture img_path %} {{ "/assets/images/" | relative_url | append: item.header.teaser }} {% endcapture %} {% capture img_alt %} {{ item.title }} {% endcapture %} {% elsif site.teaser %} {% capture img_path %} {{ "/assets/images/" | relative_url | append: site.teaser }} {% endcapture %} {% capture img_alt %} {{ site.title }} post teaser {% endcapture %} {% endif %} {% if img_path %} <div class="col-sm-4 text-center"> <img class="img-fluid rounded" src="{{ img_path | strip }}" alt="{{ img_alt | strip }}"> </div> {% endif %} <div class="col-sm-8 pl-3"> <h3 class="my-1"> <span class="text-dark ">{{ item.title | strip | strip_html | strip_newlines | truncate: 60 }}</span> </h3> <p class="mb-1"> <span class="small font-italic text-secondary">{{ item.date | date: "%b %-d, %Y" }}</span> </p> <p class="mb-1 d-none d-sm-block"> <span class="text-muted">{{ item.excerpt | strip | strip_html | strip_newlines | truncate: 180 }}</span> </p> </div> </div> </a>
Version data entries
5 entries across 5 versions & 1 rubygems