-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathindex.html
More file actions
60 lines (53 loc) · 2.11 KB
/
index.html
File metadata and controls
60 lines (53 loc) · 2.11 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
59
60
---
layout: default
---
<div id="title">
<h1>Welcome</h1>
<p>We are a student organization devoted to the teaching and advocacy of Linux, open source, and free software of all kinds. We welcome anyone and everyone from the Linux, Unix, BSD, and macOS realms, so come join us! All of our meetings are open to the public.</p>
<div id="chat">
<a href="http://webchat.oftc.net/?channels=utdlug">Chat with us</a> we are on IRC at <b>irc.oftc.net #utdlug</b>
</div>
</div>
<hr />
{% for post in paginator.posts %}
<h1>{{ post.title }}</h1>
{{ post.content }}
<hr />
{% endfor %}
{% if paginator.total_pages > 1 %}
{% assign ellipsed = false %}
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">Previous</a>
{% else %}
<span class="previous">Previous</span>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% assign pages_minus_three = paginator.total_pages | minus : 3 %}
{% if page > 3 and page < pages_minus_three %}
{% assign page_plus_three = paginator.page | plus : 3 %}
{% assign page_minus_three = paginator.page | minus : 3 %}
{% if page < page_minus_three or page > page_plus_three %}
{% unless ellipsed %}
...
{% assign ellipsed = true %}
{% endunless %}
{% continue %}
{% endif %}
{% endif %}
{% assign ellipsed = false %}
{% if page == paginator.page %}
{{ page }}
{% elsif page == 1 %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}" aria-label="Page {{ page }}">{{ page }}</a>
{% else %}
<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}" aria-label="Page {{ page }}">{{ page }}</a>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next</a>
{% else %}
<span class="next">Next</span>
{% endif %}
</div>
{% endif %}