Repository navigation
Expand file tree
/
Copy pathnotes.html
More file actions
59 lines (56 loc) · 3.04 KB
/
Copy pathnotes.html
File metadata and controls
59 lines (56 loc) · 3.04 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
---
layout: default
page_id: notes
section: notes
title: 공부 노트
permalink: /notes/
scripts:
- /assets/js/notes.js
---
{% assign notes = site.notes | sort: "date" | reverse %}
{% capture tag_str %}{% for t in site.data.tags %}{{ t.name }}|{% endfor %}{% for n in site.notes %}{% for t in n.tags %}{{ t }}|{% endfor %}{% endfor %}{% endcapture %}
{% assign all_tags = tag_str | split: "|" | uniq | sort %}
<header class="page-head" id="notes-head">
<h1 id="notes-title">공부 노트</h1>
<p id="notes-desc">과제와 상관없이 공부하며 배운 것을 적어요. 프로젝트나 태그를 골라서 볼 수 있어요.</p>
<p class="series-link" id="notes-project" data-base="{{ '/project/' | relative_url }}" hidden><a href="#">프로젝트 화면에서 가치관과 할 일 보기</a></p>
<p class="series-link" id="notes-link" hidden><a href="#" rel="noopener"></a></p>
</header>
<div class="note-filters">
<div class="filters" role="group" aria-label="프로젝트로 거르기">
<a class="chip" href="{{ '/notes/' | relative_url }}" data-series="" aria-pressed="true">전체</a>
{% for s in site.data.series %}
<a class="chip" href="{{ '/notes/' | relative_url }}?series={{ s.id }}" data-series="{{ s.id }}" data-title="{{ s.title | escape }}" data-desc="{{ s.description | escape }}" data-link="{{ s.link | escape }}" aria-pressed="false">{{ s.title }}</a>
{% endfor %}
</div>
{% if all_tags.size > 0 %}
<p class="tag-cloud" role="group" aria-label="태그로 거르기">
{% for t in all_tags %}{% if t != "" %}<a class="tag-chip" href="{{ '/notes/' | relative_url }}?tag={{ t | url_encode }}" data-tag="{{ t | escape }}" aria-pressed="false">#{{ t }}</a>{% endif %}{% endfor %}
</p>
{% endif %}
</div>
<section class="window">
<p class="filter-state" id="filter-state" hidden></p>
{% if notes.size > 0 %}
<ol class="note-list" id="note-list">
{% for n in notes %}
{% assign s = site.data.series | where: "id", n.series | first %}
<li data-series="{{ n.series }}" data-tags="|{{ n.tags | join: '|' }}|" data-date="{{ n.date | date: '%Y-%m-%d' }}">
<time datetime="{{ n.date | date: '%Y-%m-%d' }}">{{ n.date | date: "%Y. %-m. %-d." }}</time>
<div>
<a class="note-title" href="{{ n.url | relative_url }}">{{ n.title }}</a>
{% if n.summary %}<span class="feed-summary">{{ n.summary }}</span>{% endif %}
<span class="feed-meta">
{% if s %}<span class="feed-series">{{ s.title }}</span>{% endif %}
{% for t in n.tags %}<span class="tag-chip is-static">#{{ t }}</span>{% endfor %}
</span>
</div>
</li>
{% endfor %}
</ol>
<p class="empty" id="notes-empty" hidden>여기에는 아직 글이 없어요.</p>
{% else %}
<p class="empty">아직 공부 노트가 없어요. 오늘 배운 것 하나를 적어 보세요.</p>
{% endif %}
<p class="more-links owner-only" hidden><a href="{{ '/write/note/' | relative_url }}" id="notes-write">새 노트 쓰기</a> <a href="{{ '/manage/' | relative_url }}">프로젝트와 태그 관리</a></p>
</section>