Sha256: 87e849cc4a2f0de7090204ba248e014e2a7e81329110628b7524a73951561f4d
Contents?: true
Size: 1.76 KB
Versions: 2
Compression:
Stored size: 1.76 KB
Contents
<div class="post-card" itemprop="blogPosts" itemscope="" itemtype="http://schema.org/BlogPosting"> {% if post.categories %} {% assign categories = post.categories %} <span class="post-card__label"> {% for category in categories %} <a href="{{site.baseurl}}/categories/#{{category|slugize}}" class="label"> {{ category }} </a> {% unless forloop.last %} {% endunless %} {% endfor %} </span> {% endif %} <a href="{{ post.url | relative_url }}"> {% if post.featured-img %} <figure class="post-card__thumb"> <img src="{{ site.url }}{{ site.baseurl }}/assets/img/posts/{{post.featured-img}}_placehold.jpg", data-srcset="{{ site.url }}{{ site.baseurl }}/assets/img/posts/{{post.featured-img}}_thumb.jpg, {{ site.url }}{{ site.baseurl }}/assets/img/posts/{{post.featured-img}}_thumb@2x.jpg 2x" class="lazyload blur" alt="{{post.title}}" /> <noscript><img src="{{ site.url }}{{ site.baseurl }}/assets/img/posts/{{post.featured-img}}_thumb.jpg" alt="{{ post.title }}"></noscript> </figure> {% else %} <figure class="post-card__thumb"> <div class="dark-bg"></div> </figure> {% endif %} </a> <a class="post-card__inner" href="{{ post.url | relative_url }}"> <div class="post-card__header"> <h2>{{ post.title | strip_html | truncate: 50 }}</h2> {% assign date_format = site.sleek.date_format | default: "%b %-d, %Y" %} <span class="post-card__meta"> <time>{{ post.date | date: date_format }}</time> </span> </div> {% if post.summary %} <p>{{ post.summary | strip_html | truncatewords:20 }}</p> {% else %} <p>{{ post.content | strip_html | truncatewords: 20 }}</p> {% endif %} </a> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jekyll-sleek-0.1.8 | _includes/card.html |
jekyll-sleek-0.1.7 | _includes/card.html |