-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
61 lines (61 loc) · 1.78 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
60
61
---
layout: default
group: Blog
title: Home
---
{% include libs/truncate_start %}
{% for post in paginator.posts limit: 1 %}
<!-- Featured Article -->
<article class="hero-unit">
<header><hgroup>
<h1>
<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
</h1>
<h4>
<time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: site.date_format }}</time>
</h4>
</hgroup></header>
<div class="content">
{% include libs/thumbnail %}
{% include libs/truncate_exec %}
</div>
<footer>
<p><a href="{{ site.baseurl }}{{ post.url }}" class="btn btn-primary btn-large">Read this »</a></p>
</footer>
</article>
{% endfor %}
{% assign m = 0 %}
{% capture M %}{{ site.columns }}{% endcapture %}
{% capture n %}{{ site.paginate | minus: 1 }}{% endcapture %}
{% for post in paginator.posts limit: n offset: 1 %}
{% if m == 0 %}
<!-- Followed Articles -->
<div class="row-fluid">
{% endif %}
<article class="span{{ 12 | divided_by: site.columns }}">
<header>
{% include libs/thumbnail %}
<hgroup>
<h2>
<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
</h2>
<h5>
<time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: site.date_format }}</time>
</h5>
</hgroup>
</header>
<div class="content">
{% include libs/truncate_exec %}
</div>
<footer>
<p><a href="{{ site.baseurl }}{{ post.url }}" class="btn">Read this »</a></p>
</footer>
</article><!--/span-->
{% capture m %}{{ m | plus: 1 }}{% endcapture %}
{% if m == M or forloop.last %}
</div><!--/row-fluid-->
{% assign m = 0 %}
{% endif %}
{% endfor %}
{% include libs/truncate_end %}
{% include pagenation.html %}