blog/_includes/views/post-item.html
2019-09-11 12:21:17 +08:00

13 lines
356 B
HTML

{%- 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 }}
</a>
</span>