-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
29 lines (23 loc) · 1.12 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
29
---
layout: default
title: Home
---
{% include intro.html %}
<section class="post-list">
<div class="container">
<h2>Writing..</h2>
{% for post in site.posts limit:3 %}
<article class="post-item">
<p><span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span> — <strong><a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></strong> — <span> {{ post.content | strip_html | truncatewords: 40 }}</span> <a class="post-link readmore" href="{{ post.url | prepend: site.baseurl }}">Read more</a></p>
</article>
{% endfor %}
</div>
<div style="text-align: center;">
<span style="margin: 1em;"><a class="post-link readmore" href="{{ '/archive' | prepend: site.baseurl }}">All Posts</a></span>
<span style="margin: 1em;"><a class="post-link readmore" href="{{ '/categories' | prepend: site.baseurl }}">Posts by Categories</a></span>
<span style="margin: 1em;"><a class="post-link readmore" href="{{ '/tags' | prepend: site.baseurl }}">Posts by Tags</a></span>
</div>
<div class="container">
{% include pagination.html %}
</div>
</section>