Skip to content

Commit fc3e5dd

Browse files
committed
backup: 3
1 parent 16f533b commit fc3e5dd

11 files changed

Lines changed: 554 additions & 51 deletions

File tree

content/해커톤/a.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
date: 2022-03-09
3+
desc:
4+
category: [해커톤]
5+
published: true
6+
fixed: false
7+
---
8+
9+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

content/해커톤/b.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
date: 2022-02-10
3+
desc:
4+
category: [해커톤]
5+
published: true
6+
fixed: false
7+
---
8+
9+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

content/해커톤/c.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
date: 2022-01-10
3+
desc:
4+
category: [해커톤]
5+
published: true
6+
fixed: false
7+
---
8+
9+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

content/해커톤/해커톤을 처음 나가는 개발자들을 위한 팁.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ date: 2022-12-10
33
desc:
44
category: [해커톤]
55
published: true
6-
fixed: false
6+
fixed: true
77
---
88

99
> 저는 이번 처음 한국코드페어 해커톤을 출전하여 동상을 수상하였습니다. 거기서 느낀 경험담을 들리고자 합니다.

layout/category.html

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
<!DOCTYPE html>
2+
<html lang="ko">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
6+
7+
<title>{{ .CategoryName }} 포스트 | 차한음 블로그</title>
8+
<meta name="description" content="{{ .CategoryName }} 포스트 | 차한음 블로그">
9+
<meta name="author" content="차한음">
10+
<link rel="canonical" href="https://chebread.github.io/">
11+
12+
<meta property="og:title" content="{{ .CategoryName }} 포스트 | 차한음 블로그">
13+
<meta property="og:description" content="{{ .CategoryName }} 포스트 | 차한음 블로그">
14+
<meta property="og:type" content="article">
15+
<meta property="og:url" content="https://chebread.github.io/posts.html">
16+
<meta property="og:site_name" content="차한음 블로그">
17+
18+
<meta name="twitter:card" content="summary_large_image">
19+
<meta name="twitter:title" content="{{ .CategoryName }} 포스트 | 차한음 블로그">
20+
<meta name="twitter:description" content="차한음 블로그 {{ .CategoryName }} 포스트">
21+
22+
<script type="application/ld+json">
23+
{
24+
"@context": "https://schema.org",
25+
"@type": "BlogPosting",
26+
"headline": "{{ .CategoryName }} 포스트 | 차한음 블로그",
27+
"author": {
28+
"@type": "Person",
29+
"name": "차한음"
30+
},
31+
"publisher": {
32+
"@type": "Organization",
33+
"name": "차한음",
34+
},
35+
"description": "{{ .CategoryName }} 포스트 | 차한음 블로그"
36+
}
37+
</script>
38+
39+
<link rel="stylesheet" href="/styles/reset.css" />
40+
<link rel="stylesheet" href="/styles/layout.css" />
41+
<link rel="stylesheet" href="/styles/color-palette.css">
42+
43+
<link rel="stylesheet" href="/styles/posts.css">
44+
45+
<link rel="icon" href="/favicons/favicon.ico" sizes="any">
46+
<link rel="icon" type="image/png" sizes="32x32" href="/favicons/favicon-32x32.png">
47+
<link rel="apple-touch-icon" href="/favicons/apple-touch-icon.png">
48+
</head>
49+
<body>
50+
<div class="root">
51+
<div class="posts">
52+
<nav class="posts-nav">
53+
<a href="/" class="{{if eq .CurrentURL "/"}}active{{end}}">
54+
<span></span>
55+
</a>
56+
<a href="/about{{if not .IsProduction}}.html{{end}}" class="{{if eq .CurrentURL "/about"}}active{{end}}">
57+
<span>어바웃</span>
58+
</a>
59+
<a href="/posts{{if not .IsProduction}}.html{{end}}" class="{{if eq .CurrentURL "/posts"}}active{{end}}">
60+
<span>포스트</span>
61+
</a>
62+
</nav>
63+
64+
<main class="posts-list">
65+
{{ .PostList }}
66+
</main>
67+
<footer class="posts-footer">
68+
<section>
69+
<p>&copy; 2025 Cha Haneum</p>
70+
</section>
71+
<section>
72+
<a href="https://github.com/chebread">
73+
<span>깃허브</span>
74+
</a>
75+
<a href="">
76+
<span>이메일</span>
77+
</a>
78+
</section>
79+
</footer>
80+
</div>
81+
</div>
82+
83+
<script src="/js/main.js"></script>
84+
</body>
85+
</html>

layout/posts.html

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -62,31 +62,7 @@
6262
</nav>
6363

6464
<main class="posts-list">
65-
{{range .CategoryGroups}}
66-
<section class="category-group">
67-
<h2 class="category-group-title">[{{.Name}}]</h2>
68-
<ul class="category-group-list">
69-
{{range .Posts}}
70-
<li class="post-item">
71-
<article>
72-
<h3 class="post-item-title">
73-
<a href="{{.URL}}">{{if .FixedPost}}[고정됨] {{end}}{{.Title}}</a>
74-
</h3>
75-
<p class="post-item-date"><time datetime="{{.Date}}">{{.FormattedDate}}</time></p>
76-
<p class="post-item-description">{{.Description}}</p>
77-
<div class="post-item-category">{{range .Category}}<span>[{{.}}</span>] {{end}}</div>
78-
</article>
79-
</li>
80-
{{end}}
81-
</ul>
82-
83-
{{if .ShowMoreLink}}
84-
<div class="more-link">
85-
<a href="/posts/{{.Slug}}">[{{.Name}}] 더보기 (총 {{.TotalCount}}개)</a>
86-
</div>
87-
{{end}}
88-
</section>
89-
{{end}}
65+
{{ .PostList }}
9066
</main>
9167
<footer class="posts-footer">
9268
<section>

layout/styles/posts.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,15 @@
5959
line-height: 1.5;
6060
font-weight: 800;
6161
padding-bottom: 0.5rem;
62+
text-decoration: underline;
6263
}
6364

6465
.category-group-list {
6566
display: flex;
6667
flex-direction: column;
68+
69+
70+
6771
gap: 2rem;
6872

6973
.post-item {
@@ -91,8 +95,23 @@
9195
.post-item-category {
9296
font-size: 1rem;
9397
line-height: 1.5;
98+
9499
}
95100
}
101+
102+
.post-more-link {
103+
text-decoration: underline;
104+
font-size: 1rem;
105+
font-weight: 600;
106+
line-height: 1.5;
107+
}
108+
109+
.back-link {
110+
text-decoration: underline;
111+
font-size: 1rem;
112+
font-weight: 600;
113+
line-height: 1.5;
114+
}
96115
}
97116
}
98117
}

lib/compare_ko_en.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package lib
2+
3+
import "unicode"
4+
5+
func CompareKoreanEnglish(s1, s2 string) bool {
6+
isKorean1 := isKorean([]rune(s1)[0])
7+
isKorean2 := isKorean([]rune(s2)[0])
8+
if isKorean1 != isKorean2 {
9+
return isKorean1 // 한글이 true이므로 앞으로 온다
10+
}
11+
return s1 < s2
12+
}
13+
14+
func isKorean(r rune) bool { return unicode.Is(unicode.Hangul, r) }
File renamed without changes.

0 commit comments

Comments
 (0)