-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
174 lines (140 loc) · 6.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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
---
layout: default
title: Home
---
<div class="main-sort-nav">
<ul class="Nav Nav_Small MainNav">
<li class="MainNav-Button sort-alpha"><a href="#">Alpha</a></li>
<li class="MainNav-Button sort-score"><a href="#">Score</a></li>
<li class="MainNav-Button sort-published MainNav-Button_LeftOfActive"><a href="#">Published</a></li>
<li class="MainNav-Button sort-added MainNav-Button_Active"><a href="#">Added</a></li>
</ul>
</div>
<div class="posts">
{% for post in paginator.posts %}
{% assign total = 25 %}
{% assign score-random-tmp = post.score-random | times: 1.0 %}
{% assign score-progression-tmp = post.score-progression | times: 1.0 %}
{% assign score-platforming-tmp = post.score-platforming | times: 1.0 %}
{% assign score-permadeath-tmp = post.score-permadeath | times: 1.0 %}
{% assign score-exploration-tmp = post.score-exploration | times: 1.0 %}
{% assign score-tmp-my-total = score-random-tmp | plus: score-progression-tmp | plus: score-platforming-tmp | plus: score-permadeath-tmp | plus: score-exploration-tmp %}
{% assign score-tmp-my-total-divided = score-tmp-my-total | divided_by: total %}
{% assign score-tmp-final = score-tmp-my-total-divided | times: 100 %}
{% if post.game-published %}
{% assign published-data = post.game-published | date: "%Y-%m-%d" %}
{% assign published-data-display = post.game-published | date: "%Y - %m" %}
{% else %}
{% assign published-data = "now" | date: "%Y-%m-%d" %}
{% assign published-data-display = "UNRELEASED" %}
{% endif %}
{% if post.game-status == "Early Access" %}
{% assign earlyaccess = "<div class='earlyaccess'>EARLY ACCESS</div>" %}
{% assign earlyaccessdiv = "earlyaccessmargin" %}
{% else %}
{% assign earlyaccess = "" %}
{% assign earlyaccessdiv = "" %}
{% endif %}
{% if post.score-controller == 1 %}
{% assign controllerclass = " controller-support" %}
{% else %}
{% assign controllerclass = "" %}
{% endif %}
<div class="post{{ controllerclass }}" data-name="{{ post.title | downcase | replace: 'of ', '' | replace: 'the ', '' | replace: ' ', ''}}" data-score="{{ score-tmp-final }}" data-added="{{ post.date-added | date: "%Y-%m-%d" }}" data-published="{{ published-data }}">
<h1 class="post-title">
{{ post.title }}
</h1>
<div class="info">
<div class="skillbar clearfix " data-percent="{{ score-tmp-final }}%">
<div class="skillbar-bar" style="background: rgb(81, 81, 81);"></div>
<div class="skill-bar-percent"><em>Spelunkyness:</em> {{ score-tmp-final }}%</div>
</div>
</div>
{{ earlyaccess }}
<div class="rogue-image {{ earlyaccessdiv }}">
<a data-fancybox="gallery" href="javascript:;" data-src="#{{ post.title | downcase | replace: 'of ', '' | replace: 'the ', '' | replace: ' ', ''}}"><img src="/public/images/{{ post.game-image }}"></a>
</div>
<div class="date-widget">
<div class="date-widget-top">
ADDED
</div>
<div class="date-widget-bottom">
{{ post.date-added | date: "%Y - %m" }}
</div>
</div>
<div class="date-widget">
<div class="date-widget-top">
RELEASED
</div>
<div class="date-widget-bottom">
{{ published-data-display }}
</div>
</div>
</div>
<div class="post postpop" style="display: none;" id="{{ post.title | downcase | replace: 'of ', '' | replace: 'the ', '' | replace: ' ', ''}}" data-name="{{ post.title | downcase | replace: 'of ', '' | replace: 'the ', '' | replace: ' ', ''}}" data-score="{{ score-tmp-final }}" data-added="{{ post.date-added | date: "%Y-%m-%d" }}" data-published="{{ published-data }}">
<h1 class="post-title">
{{ post.title }}
</h1>
<p>{{ post.content }}</p>
<div class="rogue-image">
<img src="/public/images/{{ post.game-image }}">
</div>
<div class="link-widget"><a target="blank" href="{{ post.game-url }}">WEBSITE</a></div>
<div class="link-widget"><a target="blank" href="{{ post.game-publisher }}">PUBLISHER</a></div>
<div class="date-widget">
<div class="date-widget-top">
ADDED
</div>
<div class="date-widget-bottom">
{{ post.date-added | date: "%Y - %m" }}
</div>
</div>
<div class="date-widget">
<div class="date-widget-top">
RELEASED
</div>
<div class="date-widget-bottom">
{{ published-data-display }}
</div>
</div>
<div class="info">
<div class="skillbar clearfix " data-percent="{{ score-tmp-final }}%">
<div class="skillbar-bar" style="background: rgb(81, 81, 81);"></div>
<div class="skill-bar-percent"><em>Spelunkyness:</em> {{ score-tmp-final }}%</div>
</div>
</div>
<div class="info">
<div class="skillbar clearfix " data-percent="{{ post.score-random | times: 2 | times: 10 }}%">
<div class="skillbar-bar" style="background: rgb(81, 81, 81);"></div>
<div class="skill-bar-percent"><em>Random: </em>{{ post.score-random }}</div>
</div>
</div>
<div class="info">
<div class="skillbar clearfix " data-percent="{{ post.score-progression | times: 2 | times: 10 }}%">
<div class="skillbar-bar" style="background: rgb(81, 81, 81);"></div>
<div class="skill-bar-percent"><em>Character Progression: </em>{{ post.score-progression }}</div>
</div>
</div>
<div class="info">
<div class="skillbar clearfix " data-percent="{{ post.score-platforming | times: 2 | times: 10 }}%">
<div class="skillbar-bar" style="background: rgb(81, 81, 81);"></div>
<div class="skill-bar-percent"><em>2D Platforming: </em>{{ post.score-platforming }}</div>
</div>
</div>
<div class="info">
<div class="skillbar clearfix " data-percent="{{ post.score-permadeath | times: 2 | times: 10 }}%">
<div class="skillbar-bar" style="background: rgb(81, 81, 81);"></div>
<div class="skill-bar-percent"><em>Permadeath: </em>{{ post.score-permadeath }}</div>
</div>
</div>
<div class="info">
<div class="skillbar clearfix " data-percent="{{ post.score-exploration | times: 2 | times: 10 }}%">
<div class="skillbar-bar" style="background: rgb(81, 81, 81);"></div>
<div class="skill-bar-percent"><em>Exploration: </em>{{ post.score-exploration }}</div>
</div>
</div>
</div>
{% endfor %}
</div>
<p class="copyright">Credit to <a href="http://supajackle.deviantart.com/">supajackle</a> for the pixel art.</p>
<p class="copyright">© {{ site.time | date: '%Y' }}. All rights reserved.</p>