-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
21 lines (20 loc) · 946 Bytes
/
index.html
File metadata and controls
21 lines (20 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
layout: default
title: Index page
---
<div class="forums" style="font-size:large;">
{% for category in site.categories %}
{% assign first_post = category[ 1 ] | first %}
{% assign last_post = category[ 1 ] | last %}
{% assign first_post_last_category = first_post.categories | last %}
{% assign last_post_last_category = last_post.categories | last %}
{% if first_post_last_category == last_post_last_category %}
<div class="col-sm-12" style="background-color:#D5E1EA; height: 50px; padding-top: 10px; border-top: 1px solid #FFFFFF; border-bottom: 1px solid #00608F;">
<a href="/forums/{{forum}}/{{ category[ 0 ] }}">{{ category[ 0 ] | replace: "_", "/" }}</a> ( {{ category[ 1 ].size }} )
</div>
{% else %}
<h3 class="col-sm-12">{{ category[ 0 ] | capitalize | replace: "_", " " }}</h3>
{% assign forum = category[ 0 ] %}
{% endif %}
{% endfor %}
</div>