-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
39 lines (35 loc) · 1.58 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
---
layout: index-page
description: "Game Science"
header-img: "img/activision_game_science.png"
---
{% for post in paginator.posts %}
<div class="post-preview" xmlns="http://www.w3.org/1999/html">
<a href="{{ post.url | prepend: site.baseurl }}">
<h2 class="post-title">
{% if post.path contains 'drafts' %}<i>(Draft) </i>{% endif %}{{ post.title }}
</h2>
</a>
<p class="post-meta">by {% if post.github %}<a href="http://github.com/{{ post.github }}">{{ post.author }}</a>{% elsif post.author %}{{ post.author }}{% else %}{{ site.title }}{% endif %} on {{ post.date | date: "%d-%b-%Y" }}</p>
{% if post.content contains '<!--excerpt.start-->' and post.content contains '<!--excerpt.end-->' %}
{{ ((post.content | split:'<!--excerpt.start-->' | last) | split: '<!--excerpt.end-->' | first) }}
{% if post.content contains '<!--more-->' %}<div class="more"><a href="{{ post.url | prepend: site.baseurl }}" class="btn btn-primary btn-sm">read more <span class="glyphicon glyphicon-arrow-right"></span></a></div>{% endif %}
{% endif %}
</div>
<hr>
{% endfor %}
<!-- Pager -->
{% if paginator.total_pages > 1 %}
<ul class="pager">
{% if paginator.previous_page %}
<li class="previous">
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">← Newer Posts</a>
</li>
{% endif %}
{% if paginator.next_page %}
<li class="next">
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Older Posts →</a>
</li>
{% endif %}
</ul>
{% endif %}