-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
34 lines (30 loc) · 1004 Bytes
/
Copy pathindex.html
File metadata and controls
34 lines (30 loc) · 1004 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
25
26
27
28
29
30
31
32
33
34
---
layout: default
---
<div class="home">
<ul class="post-list">
{% for post in site.posts %}
<li>
<h2 class="title-link">
<a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</h2>
<span class="post-meta">{{ post.date | date: "%B %-d, %Y" }}</span>
<div class="post-excerpt">
<p>
{{ post.excerpt | remove: '<p>' | remove: '</p>' }}
{% capture content_words %}
{{ post.content | number_of_words }}
{% endcapture %}
{% capture excerpt_words %}
{{ post.excerpt | number_of_words }}
{% endcapture %}
{% if excerpt_words != content_words %}
→ <a class=read-more-link href="{{ post.url | prepend: site.baseurl }}">Read more</a>
{% endif %}
</p>
</div>
</li>
{% endfor %}
</ul>
<p class="rss-subscribe">Subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>
</div>