-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcategories.html
29 lines (27 loc) · 1.23 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
---
layout: page
---
{% include sidemenu.html %}
<div class="home">
<div style="width: 80%" class="content">
<h1 style="font-size: 18px;" class="staticcategories"><i class="fa fa-folder"></i> Archive</h1>
<ul style="list-style-type: none; margin: 0; padding: 0;">
{% assign sorted_cats = site.categories | sort %}
{% for category in sorted_cats %}
{% assign sorted_posts = category[1] | reversed %}
<h2 class="fakecategorie" style="margin-left: 10%; text-align: left;" id="{{category[0] | uri_escape | downcase }}">{{category[0] | capitalize}}</h2>
<ul>
{% for post in sorted_posts %}
<li style="list-style-type: none; margin: 0; padding: 0;">
<p id="{{post.tags}}" class="posttag">
<a style="color: #FB0;" href="{{ site.url }}{{ site.baseurl }}{{ post.url }}"><i class="fas fa-angle-double-left"></i> {{ post.title }}</a>
| by {{ post.author }} - [{{ post.date | date: "%b %-d, %Y"}}] • <a href="{{page.url}}#{{post.tags}}">{{post.tags}}</a>
</p>
</li>
{% endfor %}
</ul>
{% endfor %}
</ul>
</div>
<p style="text-align: right;">Hey, want to contribute with posts/content? Make your pull request on <a href="https://github.com/sauer-sauce/sauer-sauce.github.io/tree/master/_posts">Github</a>!</p>
</div>