-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
58 lines (57 loc) · 2 KB
/
index.html
File metadata and controls
58 lines (57 loc) · 2 KB
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
---
layout: default
---
{% if paginator.page == 1 %}
<section class="lead home">
<div class="container">
<h1>Welcome to StormBit</h1>
<a href="#" class="chat-now">Chat Now</a>
<a href="/help/connect.html" class="chat-eventually">or connect manually</a>
</div>
<p>{{ site.description }}
</section>
{% elsif paginator.page > 1 %}
<section class="paginator top">
{% if paginator.previous_page %}
<a href="/{{ paginator.previous_page_path | remove_first: '/' | remove: 'index.html' }}" class="page-newer fa-arrow-left"></a>
{% else %}
<a class="page-newer fa-arrow-left disabled"></a>
{% endif %}
<h1>Page {{ paginator.page }} of {{ paginator.total_pages }}</h1>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="page-older fa-arrow-right"></a>
{% else %}
<a class="page-older fa-arrow-right disabled"></a>
{% endif %}
</section>
{% endif %}
{{ site.pagination_path }}
<div class="inner">
<section class="news"><ul>
{% for post in paginator.posts %}
{% assign author = site.people[post.author] %}
<li><article{% if forloop.first and paginator.page == 1 %} class="sticky"{% endif %}>
<header>
<h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
{% include person.html person=post.author size="small" %}
<time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: '%d %b %Y' }}</time>
</header>
{% if forloop.first and paginator.page == 1 %}
<blockquote>{{ post.content }}</blockquote>
{% else %}
<blockquote>{{ post.content|truncatewords: 60 }} <a href="{{ post.url }}">Read More</a></blockquote>
{% endif %}
</article></li>
{% endfor %}
</ul></section>
</div>
{% if paginator.page == 1 %}
{% if paginator.total_pages > 1 %}
<section class="paginator bottom">
<h1>Page {{ paginator.page }} of {{ paginator.total_pages }}</h1>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | replace: '//', '/' }}" class="page-older fa-arrow-right"></a>
{% endif %}
</section>
{% endif %}
{% endif %}