-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
36 lines (36 loc) · 1.41 KB
/
Copy pathindex.html
File metadata and controls
36 lines (36 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
layout: default
---
<div id="content" class="content">
<h3>Recent Posts</h3>
<ul class="category recent-posts">
{% for post in site.posts limit:5 %}
{% if post.menutitle %}
{% assign title = post.menutitle %}
{% else %}
{% assign title = post.title %}
{% endif %}
<li>
<div class="article">
<article class="article" itemscope itemtype="http://schema.org/BlogPosting">
<header class="post-header">
<a itemprop="name" href="{{ post.url | absolute_url }}" title="{{ title }}">{{ title }}</a>
<span class="reading-time" title="Estimated read time">
{% assign words = post.content | number_of_words %}
{% if words < 275 %}
1 min read
{% else %}
{{ words | divided_by:180 }} mins read
{% endif %}
</span>
<time class="date" itemprop="datePublished" datetime="{{post.date | date: " %Y-%m-%d "}}">{{post.date | date: "%B %e, %Y"}}</time>
</header>
<section class="post-content">
{{post.excerpt}}
</section>
</article>
</div>
</li>
{% endfor %}
</ul>
</div>