-
Notifications
You must be signed in to change notification settings - Fork 16
/
posts.html
28 lines (27 loc) · 729 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
---
layout: page
title: "포스트"
main_nav: false
permalink: /posts/
---
{% for category in site.categories %}
{% capture cat %}{{ category | first }}{% endcapture %}
<h2 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>
<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>