-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathblog.html
30 lines (28 loc) · 868 Bytes
/
blog.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
25
26
27
28
29
30
---
layout: default
nav: Blog
title: Blog
desc:
permalink: "/blog/"
---
<div class="row">
<div class="blog-main">
{% for post in site.categories.blog %}
<div class="blog-post">
<h2 class="blog-post-title">{{ post.post_title }}</h2>
<p class="blog-post-meta" style="color: grey; font-size: 0.8em">{{ post.date | date: "%-d %B %Y" }} by <a href="/people.html">{{ post.author }}</a></p>
<p>{{ post.excerpt }}</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 href={{ post.url }} style="font-size: 0.8em">Read more...</a>
{% endif %}
</div>
<br>
{% endfor %}
</div>
</div>