forked from bencentra/centrarium
-
Notifications
You must be signed in to change notification settings - Fork 1
/
posts.html
32 lines (31 loc) · 1.01 KB
/
posts.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
---
layout: page
title: "Posts"
permalink: /posts/
---
{% for category in site.categories %}
{% capture cat %}{{ category | first }}{% endcapture %}
<a class="post__category" href="#{{cat}}">{{ cat | capitalize }}</a>
{% endfor %}
<hr>
{% for category in site.categories %}
{% capture cat %}{{ category | first }}{% endcapture %}
<h2 data-aos="fade-up" style="overflow-x: hidden" id="{{cat}}">{{ cat | capitalize }}</h2>
{% for desc in site.descriptions %}
{% if desc.cat == cat %}
<p class="desc"><em>{{ desc.desc }}</em></p>
{% endif %}
{% endfor %}
<ul class="posts-list">
{% for post in site.categories[cat] %}
<li data-aos="fade-up" style="overflow-x: hidden">
<strong>
<a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</strong>
<span class="post-date">- {{ post.date | date_to_long_string }}</span>
</li>
{% endfor %}
</ul>
{% if forloop.last == false %}<hr>{% endif %}
{% endfor %}
<br data-aos="fade-up" style="overflow-x: hidden">