summaryrefslogtreecommitdiff
path: root/_includes/views/post-item.html
blob: 0cad1f45d1beba32991a965f2f7c018971fae767 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{%- if include.item -%}
  {%- assign item = include.item -%}
{%- endif -%}

{%- assign post = item -%}

{% assign date_format = site.yat.date_format | default: "%b %-d, %Y" %}
<span class="post-meta">{{ post.date | date: date_format }}</span>
<span>
  <a class="post-link" href="{{ post.url | relative_url }}">
    {{ post.title | escape }}
    {%- include views/post-badges.html -%}
  </a>
</span>