-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive.html
More file actions
25 lines (24 loc) · 846 Bytes
/
archive.html
File metadata and controls
25 lines (24 loc) · 846 Bytes
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
---
layout: default
title: 아카이브
description: "실전코딩 기술 블로그의 연도별 전체 포스트 아카이브"
lang: ko
permalink: /archive/
---
<div class="container archive-container">
{% assign korean_posts = site.posts | where: "lang", "ko" %}
{% assign posts_by_year = korean_posts | group_by_exp: "post", "post.date | date: '%Y'" %}
{% for year in posts_by_year %}
<div class="archive-year">
<h2>{{ year.name }}</h2>
<ul class="archive-posts">
{% for post in year.items %}
<li class="archive-post-item">
<span class="archive-post-date">{{ post.date | date: "%m.%d" }}</span>
<span class="archive-post-title"><a href="{{ post.url | relative_url }}">{{ post.title }}</a></span>
</li>
{% endfor %}
</ul>
</div>
{% endfor %}
</div>