-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
59 lines (58 loc) · 1.61 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
51
52
53
54
55
56
57
58
59
---
---
<div class="row-fluid">
{% for post in paginator.posts %}
<div class="col-xs-12">
{% if post.url %}
<h2><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2>
{% else %}
<h2>{{ post.title }}</h2>
{% endif %}
</div>
<div class="clearfix"></div>
<div class="col-xs-4">
<div class="text-center">
{% if post.thumbnail %}
{% if post.thumbnail contains "//" %}
{% capture thumbnail %}{{ post.thumbnail }}{% endcapture %}
{% else %}
{% capture thumbnail %}{{ post.thumbnail | prepend: site.baseurl }}{% endcapture %}
{% endif %}
<img class="img-responsive img-rounded" src="{{ thumbnail }}">
{% else %}
<h1 class="poorman-thumbnail"
style="background: {% cycle 'c': "#48c", "#fa4", "#5b5", "#d54" %};">
{{ post.title | truncate: 1, '' }}
</h1>
{% endif %}
</div>
</div>
<div class="col-xs-8">
<p>
{% if post.date %}
<span class="label label-info">
<i class="fa fa-calendar-o"></i>
{{ post.date | date_to_string }}
</span>
{% if post.tags %} {% endif %}
{% endif %}
{% for tag in post.tags %}
<span class="label label-default">
<i class="fa fa-fw fa-tag"></i>
{{ tag }}
</span>
{% unless forloop.last %} {% endunless %}
{% endfor %}
</p>
{{ post.excerpt }}
</div>
<div class="clearfix"></div>
{% unless forloop.last %}
<div class="col-xs-12"><hr /></div>
{% endunless %}
{% endfor %}
</div>
<hr />
<div class="text-center">
{% include nav_paginator.html %}
</div>