forked from phpba/phpba.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathposts.html
executable file
·43 lines (38 loc) · 1010 Bytes
/
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
33
34
35
36
37
38
39
40
41
42
---
layout: page
title: "Posts"
permalink: /posts/
---
<h1>Todas as categorias</h1>
<ul class="tag-box inline">
{% for category in site.categories %}
{% capture cat %}{{ category | first }}{% endcapture %}
<li>
<a href="#{{ cat | capitalize }}">
{{ cat | capitalize }}
</a>
</li>
{% endfor %}
</ul>
<h1>Posts por categoria</h1>
{% for category in site.categories %}
{% capture cat %}{{ category | first }}{% endcapture %}
<h2 id="{{ cat | capitalize }}">{{ 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>
<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>