Skip to content

Commit ab4aa66

Browse files
committed
Happy New Year & New Layout
1 parent e2e7a65 commit ab4aa66

20 files changed

+292
-346
lines changed

_articles/index.adoc

Lines changed: 0 additions & 3 deletions
This file was deleted.

_config.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ url: "https://chiwanpark.com"
88
collections:
99
posts:
1010
output: false
11-
articles:
11+
writings:
1212
output: true
1313
permalink: /:collection/:path.html
1414

@@ -17,15 +17,13 @@ plugins:
1717
- jekyll-feed
1818
- jekyll-git_metadata
1919
- jekyll-asciidoc
20-
font-awesome:
21-
assets: true
2220
asciidoc: {}
2321
asciidoctor:
2422
attributes:
2523
source-highlighter: highlightjs
2624
feed:
2725
collections:
28-
articles:
26+
writings:
2927
path: "/feed.xml"
3028
posts:
3129
path: "/feed-dummy.xml" # prevent create RSS feed from posts collection

_includes/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<p>rev. <a href="https://github.com/chiwanpark/homepage/commit/{{ page.git.last_commit.long_sha }}">{{ page.git.last_commit.short_sha }}</a></p>
33

44
<p>
5-
&copy; Copyright 2013-2021 by Chiwan Park.<br/>
5+
&copy; Copyright 2013-2022 by Chiwan Park.<br/>
66
All contents licensed under the <a href="https://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 License</a>.
77
</p>
88
</footer>

_includes/google-adsense.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
1+
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" crossorigin="anonymous"></script>
22
<!-- txtdisplay-article-bottom -->
33
<ins class="adsbygoogle"
44
style="display:block"

_includes/head.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55
<title>{% if page.permalink != "/" %}{{ page.title }} | Chiwan Park {% else %}Chiwan Park{% endif %}</title>
66

7-
<link rel="preconnect" href="https://fonts.googleapis.com" />
8-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
9-
<link href="//fonts.googleapis.com/css?family=Mukta:400,700?display=swap" type="text/css" rel="stylesheet"/>
10-
<link href="//cdn.jsdelivr.net/gh/moonspam/NanumBarunGothic@latest/nanumbarungothicsubset.css" type="text/css" rel="stylesheet"/>
7+
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard-dynamic-subset.css" />
118
<link href="/assets/style.css" type="text/css" rel="stylesheet"/>
129
<script defer type="text/javascript" src="/assets/script.js"></script>

_includes/navbar.html

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
1-
<header>
2-
<img class="profile" src="/assets/profile.jpg"/>
3-
{% if page.permalink != "/" %}
4-
<span class="name">Chiwan Park</span>
5-
{% else %}
6-
<h1 class="name">Chiwan Park</h1>
7-
{% endif %}
8-
9-
<p class="description">
10-
Research Engineer @ Kakao Corporation
11-
</p>
12-
13-
<nav class="menu">
14-
<a href="/"><i class="fas fa-home"></i><span class="text">Home</span></a>
15-
<a href="/articles"><i class="fas fa-file-alt"></i><span class="text">Articles</span></a>
16-
<a href="/feed.xml"><i class ="fas fa-rss-square"></i><span class="text">Feed</span></a>
17-
</nav>
18-
</header>
1+
<div class="header-container">
2+
<header>
3+
<h1>Chiwan Park</h1>
4+
<nav class="menu">
5+
<a href="/" class="{% if page.permalink == '/' %}active{% endif %}">Home</a>
6+
<a href="/writings/" class="{% if page.path contains '_writings' %}active{% endif %}">Writings</a>
7+
</nav>
8+
</header>
9+
</div>

_layouts/article-list.html renamed to _layouts/writing-list.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
<!DOCTYPE html>
22
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
33
<head>
4-
{% assign page.title = "Articles" %}
4+
{% assign page.title = "Posts" %}
55
{% include head.html %}
66
</head>
77
<body>
88
{% include navbar.html %}
99
<div class="content-container">
1010
<main>
11-
<h1>Articles (in Korean)</h1>
11+
<h1>Writings (in Korean)</h1>
1212
<p>제가 국문으로 작성한 글을 모아두었습니다. 모든 글은 저의 개인적인 의견이며, 제가 소속된 단체나 근무하고 있는 회사와는 상관이 없습니다.</p>
13-
<ol class="articles">
14-
{% assign articles = site.articles | sort: 'date' | reverse %}
15-
{% for article in articles %}
16-
{% if article.title != "Articles" %}
17-
<li class="article-overview">
18-
<div class="date">{{ article.date | date: '%b %d, %Y' }}</div>
13+
<ol class="writings">
14+
{% assign writings = site.writings | sort: 'date' | reverse %}
15+
{% for writing in writings %}
16+
{% if writing.title != "Writings" %}
17+
<li class="writing-overview">
18+
<div class="date">{{ writing.date | date: '%b %d, %Y' }}</div>
1919
<div class="description">
20-
<h2><a href="{{ article.url | relative_url }}">{{ article.title }}</a></h2>
21-
<span class="summary">{{ article.summary }}</span>
20+
<h2><a href="{{ writing.url | relative_url }}">{{ writing.title }}</a></h2>
21+
<span class="summary">{{ writing.summary }}</span>
2222
</div>
2323
</li>
2424
{% endif %}

_layouts/article.html renamed to _layouts/writing.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.15.2/katex.min.js"></script>
77
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.15.2/contrib/auto-render.min.js"></script>
88
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.4.0/highlight.min.js"></script>
9+
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.4.0/languages/scala.min.js"></script>
910
<script src="//cdnjs.cloudflare.com/ajax/libs/highlightjs-line-numbers.js/2.8.0/highlightjs-line-numbers.min.js"></script>
1011
<script type="text/javascript">
1112
(function() {
@@ -22,7 +23,7 @@
2223
};
2324

2425
var renderLaTeX = function() {
25-
window.renderMathInElement(document.getElementById('article-content'), {
26+
window.renderMathInElement(document.getElementById('writing-content'), {
2627
delimiters: [
2728
{left: "\\begin{equation}", right: "\\end{equation}", display: true},
2829
{left: "$", right: '$', display: false},
@@ -49,11 +50,11 @@ <h1>{{ page.title }}</h1>
4950
<p class="date">published on {{ page.date | date: '%A, %B %d, %Y' }}</p>
5051
</header>
5152

52-
<section id="article-content" class="content">{{ content }}</section>
53+
<section id="writing-content" class="content">{{ content }}</section>
5354
</article>
5455

5556
<div class="list-navigation">
56-
<a href="/articles"><i class="fas fa-lg fa-arrow-circle-left"></i><span class="text">Back to list</span></a>
57+
<a href="/writings/">Back to list</a>
5758
</div>
5859
</main>
5960
</div>

_articles/data-management.adoc renamed to _writings/data-management.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
= 데이터 관리
22
:page-lang: ko
3-
:page-layout: article
3+
:page-layout: writing
44
:page-date: 2013-02-09 00:00:00 +0900
55
:page-summary: 기록 덕후의 데이터 저장 관리 방법
66

_writings/index.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
= Writings
2+
:page-layout: writing-list
3+
:page-draft: true

0 commit comments

Comments
 (0)