Skip to content

Commit fe62f61

Browse files
committed
feat: add utterances로-댓글-기능-추가하기.mdx
1 parent 0126566 commit fe62f61

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
title: "Utterances 로 댓글 기능 추가하기"
3+
date: "2022-02-08"
4+
updated: "2025-06-30"
5+
tags: ["Etc"]
6+
summary: "Adding comment features with utterances"
7+
description: "github 이슈 기반으로 연동하는 utterances 댓글 기능 추가"
8+
---
9+
10+
:::info
11+
`utteracnes` 기반으로 댓글 기능을 추가하는 방법
12+
:::
13+
14+
:::neutral
15+
네이버블로그나 tistory 블로그를 사용했을 때는 자체적인 댓글 기능이 있어서 전혀 신경을 쓰지 않았다.
16+
하지만, Jekyll 기반으로 github page 를 이용하다보니, 댓글 기능이 필요하다는 생각이 문득 들었다.
17+
Jekyll 기반일 때는 블로그 주석 호스팅 서비스은 `disqus` 를 이용해서 댓글 기능을 추가할 수 있었지만,
18+
`disqus`는 별개 서비스라는 생각이 들었고, 페이지 한 눈에 보이는 경우 로드가 늦게 되는 것을 볼 수 있었다.
19+
결국, 다른 댓글 기능을 찾아보았는데, `utteracnes`라는 것을 알게 되었는데 댓글을 달면 Github 저장소에 Issue 에 댓글이 남겨지는 기능이었다.
20+
(사실 댓글이 달리는 경우는 없었어서 필요한가 의문이 들었지만, 그래도 적용해보았었다.)
21+
:::
22+
23+
---
24+
25+
## Q. Utterances?
26+
27+
<BlueText><span style={{ fontSize: '1.5rem', }}>A. </span></BlueText>
28+
[Utterances](https://utteranc.es/)는 Github Issue 기반으로 comment 를 작성할 수 있게 한다.
29+
30+
---
31+
32+
## Utterances 적용하기
33+
34+
`Utterances`는 정말 간단하게 적용할 수 있다.
35+
### 1. Utterances 사이트 접속
36+
* [https://utteranc.es/](https://utteranc.es/)
37+
### 2. configuration 에서 repo 설정
38+
* `사용자명/저장소이름`
39+
* ex) `eottabom/eottabom.github.io`
40+
41+
<div style={{ textAlign: 'center' }}>
42+
<img src="/img/post/etc/utterances/configuration.png" alt="configuration" style={{ display: 'inline-block' }} />
43+
</div>
44+
45+
### 3. Blog ↔ Issue Mapping 설정
46+
<div style={{ textAlign: 'center' }}>
47+
<img src="/img/post/etc/utterances/issue-mapping.png" alt="issue-mapping" style={{ display: 'inline-block' }} />
48+
</div>
49+
* (1) 이슈 제목에 페이지 경로 이름이 포함
50+
* (2) 이슈 제목에 페이지 URL 포함
51+
* (3) 이슈 제목에 페이지 제목이 포함
52+
* (4) 이슈 제목은 og: title 페이지를 포함
53+
* (5) 특정 번호
54+
* (6) 이슈 제목에는 특정 용어가 포함
55+
56+
### 4. 해당 스크립트 복사 후 post 레이 아웃등 원하는 곳에 include
57+
<div style={{ textAlign: 'center' }}>
58+
<img src="/img/post/etc/utterances/copy-script.png" alt="copy-script" style={{ display: 'inline-block' }} />
59+
</div>

0 commit comments

Comments
 (0)