-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·28 lines (28 loc) · 1.49 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
27
28
---
layout: default
---
<main role="main" class="cf">
<article class="posts"> {% for post in paginator.posts limit:4 %}
<article role="article" itemscope itemtype="http://schema.org/BlogPosting">
<header>
<h2><a href="{{site.baseurl}}{{post.url}}" rel="bookmark" title="Permanent Link to {{site.baseurl}}{{post.url}}">{{post.title}}</a></h2>
<time itemprop="dateCreated" datetime="{{post.date}}">{{ post.date | date: "%B %-d, %Y" }}</time>
</header>
<p>{{ post.excerpt | strip_html }} <a href="{{site.baseurl}}{{ post.url }}" class="more" title="read more">read more</a></p>
<footer>
<p>Posted in {% for tag in post.tags %}<a href="{{ site.baseurl }}/tags/index.html#{{ tag | cgi_escape }}" title="Pages tagged {{ tag }}" rel="tag">{{ tag }}</a>{% unless forloop.last %}, {% endunless %}{% endfor %}</p>
</footer>
</article>
{% endfor %}
<div class="pagination"> {% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<p class="prevLink"><a href="{{site.baseurl}}/" class="previous">newer entries</a></p>
{% else %}
<p class="prevLink"><a href="{{ site.baseurl }}/blog/page{{ paginator.previous_page }}" class="previous">newer entries</a></p>
{% endif %}
{% endif %}
{% if paginator.next_page %}
<p class="nextLink"><a href="{{ site.baseurl }}/blog/page{{ paginator.next_page }}" class="next">older entries</a></p>
{% endif %} </div>
</article>
{% include sidebar.html %} </main>