-
Notifications
You must be signed in to change notification settings - Fork 0
/
categories.html
39 lines (36 loc) · 1.29 KB
/
categories.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
---
layout: page
title: Categories
description: This are posts's categories.
background: '/img/bg-about.jpg'
permalink: /categories/
---
<style>
.category-preview>li>a {
color: black;
}
</style>
{% assign sorted_categories = site.categories | sort %}
<ul class="category-list inline">
{% for category in sorted_categories %}
<li><a href="#{{ category[0] }}">{{ category[0] | capitalize }} <span>{{ category[1].size }}</span></a></li>
{% endfor %}
</ul>
{% for category in sorted_categories %}
<h4 id="{{ category[0] }}" class="category-name"><span class="fa fa-tag"></span> {{ category[0] }}</h2>
<ul class="category-preview">
{% assign pages_list = category[1] %}
{% for post in pages_list %}
{% if post.title != null %}
{% if group == null or group == post.group %}
<li><a href="{{ site.url }}{{ post.url }}">{{ post.title }}<span class="entry-date"><time
datetime="{{ post.date | date_to_xmlschema }}"
itemprop="datePublished">{{ post.date | date: "%B %d, %Y" }}</time></span><br><span
class="category-subtitle">{{post.subtitle}}</span></a></li>
{% endif %}
{% endif %}
{% endfor %}
{% assign pages_list = nil %}
{% assign group = nil %}
</ul>
{% endfor %}