-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
51 lines (45 loc) · 1.94 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
46
47
48
49
50
---
layout: default
title: Blog
---
{% for post in paginator.posts %}
{% assign author = site.authors[post.authorslug] %}
<div class="post-content">
<div class="page-header">
<a href="https://twitter.com/{{author.twitter}}" target="_blank" title="@{{author.twitter}}"><img src="/images/team/{{post.authorslug}}.png" class="img-circle pull-right" style="width: 80px; height: 80px; margin-left: 20px;"></a>
<h1><a href='{{post.url}}'>{{post.title}}</a></h1>
<div style="float: left;">Posted by <a href="https://twitter.com/{{author.twitter}}" target="_blank"><strong>{{post.author}}</strong></a> on {{ post.date | date: "%B %e, %Y" }} | <small style="font-size: 16px;"><a href="{{post.url}}#disqus_thread"></a></small></div>
<div style="clear: both;"></div>
</div>
<div style="margin-top: 60px">
{{ post.content }}
</div>
</div>
<hr/>
{% endfor %}
<center>
<ul class="pagination">
{% if paginator.previous_page %}
<li class="prev"><a href="{% if paginator.page > 2 %}/page{{paginator.previous_page}}{% else %}/{% endif %}">←</a></li>
{% else %}
<li class="prev disabled"><a href="#">←</a></li>
{% endif %}
{% for post in site.posts limit:paginator.total_pages %}
<li {% if forloop.index == paginator.page %}class="active"{% endif %}><a href="{% if forloop.index > 1 %}/page{{forloop.index}}{% else %}/{% endif %}">{{forloop.index}}</a></li>
{% endfor %}
{% if paginator.next_page %}
<li class="next"><a href="/page{{paginator.next_page}}">→</a></li>
{% else %}
<li class="next disabled"><a href="#">→</a></li>
{% endif %}
</ul>
</center>
<script type="text/javascript">
var disqus_shortname = 'wingifyengineeringblog';
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>