-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharticles.html
46 lines (44 loc) · 1.56 KB
/
articles.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
46
---
layout: page
title: Articles
---
<div>
<h2>Categories</h2>
{% for category in site.categories %}
<div class="category-container">
<div class="category-content" style="border: solid 1px #E5E5E5; padding: 20px;">
<a href="{{ category.url }}" style="text-decoration: none; color: #313131">
<span class="sub-headline"><i class="fa fa-folder-open-o" aria-hidden="true"></i> {{ category.title }}</span>
<span class="description">— {{ category.description }}</span>
</a>
{% assign recent_post = site.posts | where_exp: 'post', 'post.categories contains category.name' | first %}
{% if recent_post %}
<div style="margin-top: 10px">
<span class="description">최근 글</span>
<div>
<span class="category-title-brief">
<span>— </span>
<a href={{ recent_post.url }}>
{{ recent_post.title }}
<span class="description"> · {{ recent_post.date | date_to_string }}</span>
</a>
<span style="font-size: 12px;"></span>
</div>
</div>
{% endif %}
</div>
</div>
{% endfor %}
</div>
<hr>
<div>
<h2>Tag</h2>
{% for tag in site.tags %}
{% assign tag_size = site.posts | where_exp: 'post', 'post.tags contains tag.name' | size %}
<a href="/tags/{{ tag.slug }}" class="tag tag-{{ tag.name }}">
<span style="font-size: {{ tag_size | times: 100 | divided_by: site.tags.size | plus: 70 }}% !important; line-height: initial;">
#{{ tag.name }} ({{ tag_size }})
</span>
</a>
{% endfor %}
</div>