-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
25 lines (25 loc) · 1.1 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
---
layout: default
---
{% for post in paginator.posts %}
{% if post.featured == true %}
<article class="posts__article posts__article-important">
{% else %}
<article class="posts__article">
{% endif %}
<h3 class="posts__article-title">{{ post.title }}</h3>
<h5 class="posts__article-subtitle">Posted by <strong>~{{ post.author }}</strong> on <strong>{{ post.date | date: '%B %d, %Y' }}</strong></h5>
<p class="posts__article-excerpt">
{% assign main_post=post.excerpt | replace: '<a', '@@a@@' %}
{% assign main_post=main_post | replace: '</a>', '@@/a@@' %}
{% assign main_post=main_post | strip_html %}
{% assign main_post=main_post | replace: '@@a@@', '<a ' %}
{% assign main_post=main_post | replace: '@@/a@@', '</a>' %}
{{ main_post }}
</p>
<div class="button accent float--right button__read-more">
<a href="{{ site.misc.devurl}}{{ post.url }}" title="Read more about this article">Read more</a>
</div>
<div class="clear"></div>
</article>
{% endfor %}