-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
26 lines (21 loc) · 1.25 KB
/
index.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
---
layout: default
---
<div class="titlearea"><h1>RBMH Blog</h1></div>
<div class="posts">
{% for post in site.posts limit:site.limitPostsOnHomePage %}
<article class="post">
{% assign author = site.data.authors.[post.author] %}
{% if author.name != null %}
{% if author.pic != null %}<div class="headerpic titlearea"><img src="{{ author.pic }}" alt="{{author.name}}" class="clip-circle"/>{% else %}<div class="titlearea">{% endif %}<h2><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a><br/><div class="author">{{post.date | date: "%B %e, %Y"}} by <a rel="author" href="{{ site.baseurl }}/{{ author.link }}" title="{{ author.name }}" class="authorlist">{{ author.name }}</a></div></h2><div></div></div>
{% else %}
<div class="titlearea"><h2><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a><br/><div class="author">{{post.date | date: "%B %e, %Y"}} by {{ post.author }}</div></h2></div>
{% endif %}
<div class="entry">
{{ post.content | truncatewords:40}}
</div>
<a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Read more...</a>
</article>
{% endfor %}
<h3><a href="{{ site.baseurl }}/blog" class="read-more">MORE POSTS...</a></h3>
</div>