-
Notifications
You must be signed in to change notification settings - Fork 1
/
categories.html
45 lines (36 loc) · 1.19 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
40
41
42
43
44
45
---
layout: main
permalink: /categories/
title: Articles by category
---
<div id="archives">
{% for category in site.categories %}
<div class="archive-group">
{% capture category_name %}{{ category | first }}{% endcapture %}
<div id="#{{ category_name | slugize }}"></div>
<i class="fas fa-folder-open" word-wrap: break-word;> </i>
<div class= "blocker" word-wrap: break-word;>
<h2 class="category-head">{{ category_name }} </h2>
</div>
<hr class="tight">
<a name="{{ category_name | slugize }}"></a>
{% for post in site.categories[category_name] %}
<article class="archive-item">
<h3><a href="{{ site.baseurl }}{{ post.url }}">{{post.title}}</a></h3>
{{ post.date | date: "%b %-d, %Y" }}
{% if post %}
{% assign tags = post.tags %}
{% else %}
{% assign tags = page.tags %}
{% endif %}
<i class="fas fa-tags" margin-left="1%"></i>
{% for tag in tags %}
<a href="{{site.baseurl}}/tags/#{{tag|slugize}}">{{tag}}</a>
{% unless forloop.last %} {% endunless %}
{% endfor %}
</article>
{% endfor %}
<hr class="tight">
</div>
{% endfor %}
</div>