forked from webmachinelearning/webmachinelearning.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblog-list-top2.html
More file actions
24 lines (22 loc) · 918 Bytes
/
blog-list-top2.html
File metadata and controls
24 lines (22 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<div class="wrapper">
{%- if site.posts.size > 0 -%}
<div class="gr">
{%- for post in site.posts limit: 2 -%}
<div class="post">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
<p class="posttitle"><a class="postlink" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a></p>
<p>{{ post.excerpt | strip_html | strip_newlines | truncate: 174 }}</p>
<div class="blflex">
<span class="postimg">
<img alt="profile" src="{{ post.avatar }}">
</span>
<div class="postsub">
<p class="postauthor">{{ post.author | escape }}</p>
<p class="postdate">{{ post.date | date: date_format }}</p>
</div>
</div>
</div>
{%- endfor -%}
</div>
{%- endif -%}
</div>