-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathitem.html
24 lines (24 loc) · 1.11 KB
/
item.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<li class="post-item post {{ post.post_class }}">
<a href="{{ site.url }}{{ site.baseurl }}{{ post.url }}">
<h3 class="post-title">{{ post.title }}</h3>
<p class="post-excerpt">{{ post.excerpt | strip_html | truncatewords: 75 }}</p>
</a>
<p class="post-tags">
{% for tag in post.tags %}
<a href="{{ site.url }}{{ site.baseurl }}/tags/{{ tag }}" title="{{ tag }}"
class="tag tag-{{ tag }}">{{ tag }}</a>
{% endfor %}
</p>
<div class="post-meta">
{% assign author = site.authors | where: 'name', post.author | first %}
<a href="{{ site.url }}{{ site.baseurl }}{{ author.url }}">
<div class="author-image"
{% if author.image %}style="background-image:url({{ site.url }}{{ site.baseurl }}{{ author.image }});"{% endif %}>
<span class="sr-only">{{ author.name }}'s profile image</span>
</div>
<p class="author-name">{{ author.name }}</p>
</a>
<p class="post-date">{{ post.date | date: '%Y-%m-%d' }}</p>
</div>
<!--<div class="clearfix"></div>-->
</li>