This repository has been archived by the owner on Feb 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathindex.html
111 lines (72 loc) · 3.59 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
---
layout: page
title: "Cryptic Blog: Articles from those in the tech industry."
elementID: posts
---
<h1 class="page-header">Posts</h1>
<ul id="posts-list" class="page-list">
{% for post in paginator.posts %}
{% assign index = forloop.index %}
{% for member in site.data.members %}
{% if member.github == post.username %}
{% capture leftOrRight %}{{ index | modulo:3 }}{% endcapture %}
{% if leftOrRight == '0' %}
<li class="posts-post posts-right cf">
{% else %}
<li class="posts-post posts-left cf">
{% endif %}
<div class="posts-post-words">
<div class="posts-post-title">
<h4 class="posts-post-title-text">
<a class="posts-post-title-text-link" href="{{ post.url }}" title="{{ post.title }}">
{{ post.title }}
</a>
{% for tag in post.tags %}
<a class="post-tag" href="{{ tag | first | prepend: '/tags/' | prepend: site.baseurl }}" title="{{ tag }}">#{{ tag }}</a>
{% endfor %}
</h4>
</div>
<div class="posts-post-metadata">
<span class="posts-post-authoring-info">
<a href="/tags#{{ member.github }}" class="posts-post-author-name" title="{{ member.name }}">{{ member.name }}</a>
•
<span class="posts-post-date">{{ post.date | date_to_string }}</span>
</span>
</div>
<a class="posts-post-link" href="{{ post.url }}" title="{{ post.title }}"></a>
</div>
<div class="posts-post-author-avatar">
<a href="/members#{{ member.github }}" title="{{ member.github }}">
<img class="posts-post-author-img" src="{{ member.author-img }}" alt="{{ member.github }} Avatar Image" title="{{ member.github }}"/>
</a>
</div>
</li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
{% if paginator.total_pages > 1 %}
<div class="pagination-container">
<div class="pagination cf">
{% if paginator.previous_page %}
<div class="page-number"><a class="carrot" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}" title="Previous Page"><</a></div>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% assign plusTwo = paginator.page | plus:2 %}
{% assign minusTwo = paginator.page | minus:2 %}
{% if page <= plusTwo and page >= minusTwo %}
{% if page == paginator.page %}
<div class="page-number"><a href="#" class="selected" title="Page {{ page }}">{{ page }}</a></div>
{% elsif page == 1 %}
<div class="page-number"><a href="{{ '/index.html' | prepend: site.baseurl | replace: '//', '/' }}" title="Page {{ page }}">{{ page }}</a></div>
{% else %}
<div class="page-number"><a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}" title="Page {{ page }}">{{ page }}</a></div>
{% endif %}
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<div class="page-number"><a class="carrot" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}" title="Next Page">></a></div>
{% endif %}
</div>
</div>
{% endif %}