-
Notifications
You must be signed in to change notification settings - Fork 63
/
index.html
45 lines (42 loc) · 1.97 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
layout: base
sitemap: false
---
<div class="illustration">
<div class="container">
<img src="{{ site.github.url | replace: 'http://', '//' }}/images/illustration-full.png" alt="Tech Blog">
</div>
</div>
<article class="container posts">
{% for post in paginator.posts %}
{% unless post.draft %}
<section class="index">
<a href="{{ site.github.url | replace: 'http://', '//' }}{{ post.url }}" rel="prefetch">
{% if post.author.image %}<img src="{{ site.github.url | replace: 'http://', '//' }}/images/{{ post.author.image }}" class="avatar">{% endif %}
{% if post.author.imageURL %}<img src="{{ post.author.imageURL }}" class="avatar">{% endif %}
<div>
<h2 class="title">{{ post.title }}</h2>
<div class="meta">
Written By <address>{{ post.author.name }}</address> —
<time pubdate datetime="{{ post.date | date: "%Y-%d-%B" }}" title="{{ post.date | date: "%B %d, %Y" }}">{{ post.date | date: "%B %d, %Y" }}</time>
</div>
<div class="post_content">{{ post.excerpt | strip_html }}</div>
<!-- <p class="readmore"><a href="{{ site.github.url | replace: 'http://', '//' }}{{ post.url }}" rel="prefetch">Read more</a></p>-->
</div>
</a>
</section>
{% endunless %}
{% endfor %}
<section class="pagination" style="text-align:center">
{% if paginator.next_page %}
<a href="{{ site.github.url | replace: 'http://', '//' }}/page{{ paginator.next_page }}" class="btn btn-outline">< Older</a>
{% endif %}
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a href="{{ site.github.url | replace: 'http://', '//' }}" class="btn btn-outline">Newer ></a>
{% else %}
<a href="{{ site.github.url | replace: 'http://', '//' }}/page{{ paginator.previous_page }}" class="btn btn-outline">Newer ></a>
{% endif %}
{% endif %}
</section>
</article>