diff options
Diffstat (limited to '_includes/views/post-item.html')
-rw-r--r-- | _includes/views/post-item.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/_includes/views/post-item.html b/_includes/views/post-item.html new file mode 100644 index 0000000..0d6d129 --- /dev/null +++ b/_includes/views/post-item.html @@ -0,0 +1,13 @@ +{%- 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> |