Home 깃 블로그 생성
Post
Cancel

깃 블로그 생성

Intro:

  • 포트폴리오용 웹페이지를 만들 겸, 기존에 쓰던 깃 블로그와 합쳐 새로 만들려고 한다

기존 theme: cotes2020/jekyll-theme-chirpy 리뉴얼 theme: chemistryx/hyde

진행 방식:

  1. chemistry/hyde theme 다운로드
  2. 기본 설정
  3. 추가 customizing
  4. 기존 블로그 post 이동

깃 블로그 생성

Jekyll, Ruby 등 installation

chemistry/hyde theme 다운로드

  1. https://github.com/chemistryx/hyde 접속
  2. code > download zip 클릭
  3. 압축 풀기
  4. 원하는 폴더 위치로 이동

git clone 대신 download zip 하는 이유:

  • git clone나 fork시 commit 해도 잔디가 안심어지는 문제가 생긴다(원본 레포지로 commit merge시에 잔디가 심어짐)
  • 처음부터 download zip 이용시 연결이 없어 (.git 파일 자체가 없음) 편하다
  • 만약 이미 fork나 clone하여 사용했다면, 원본 레포지로 끊는 방법이 존재하긴 한다:
    • git 서비스 센터에 문의 남기면 가능했던걸로 기억한다

기본 설정

_config.yml 파일 수정

설정하기

1. _config.yml 수정

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
title: Hyde
description: >-
  Build your own portfolio <br>
  with Hyde.
url: "https://chemistryx.github.io/hyde"
github: ChemistryX
email: changeme@chemistryx.me
google_analytics: "UA_TOKEN"

exclude: [README.md, Gemfile, Gemfile.lock]

comments:
  enabled: true
  repo: "REPO_COMMENTS_PATH"
  issue-term: pathname
  theme: github-light

title: 웹사이트 전반에서 표시될 이름입니다.(네비게이션 바, 푸터 등)

description: 초기 페이지 설명 문구에 들어갈 내용입니다.

url: 사이트의 주소를 적어주세요. 사이트맵 및 기타 부가기능을 설정하는 데 필요합니다.

github: 본인 GitHub 사용자 이름을 적어주세요. 푸터에 있는 버튼에 사용됩니다.

email: 본인의 이메일을 적어주세요. 소셜 기능 및 푸터에 있는 버튼에 사용됩니다.

google_analyticsGoogle Analytics에서 발급한 추적 ID를 입력해주세요.

comments: 블로그 하단부에 노출되는 댓글 설정입니다. 댓글은 GitHub 계정이 있어야 달 수 있습니다. 자세한 내용은 이곳을 참조하세요.

2. 기타 부가적인 내용 수정

robots.txt: 기존 URL을 본인 사이트 URL에 맞게 수정

assets/images/site.webmanifest: 내용을 본인 사이트에 맞게 수정

  • 그 외 내용들을 코드 내부에 주석으로 달아놓았으니 참고하시길 바랍니다.

기존 theme __config.yml

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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
# The Site Configuration

# Import the theme

theme: jekyll-theme-chirpy


# Change the following value to '/PROJECT_NAME' ONLY IF your site type is GitHub Pages Project sites

# and doesn't have a custom domain.

baseurl: ""

# The language of the webpage › http://www.lingoes.net/en/translator/langcode.htm

# If it has the same name as one of the files in folder `_data/locales`, the layout language will also be changed,

# otherwise, the layout language will use the default value of 'en'.

lang: en

# Change to your timezone › http://www.timezoneconverter.com/cgi-bin/findzone/findzone

timezone: Asia/Seoul

  

# jekyll-seo-tag settings › https://github.com/jekyll/jekyll-seo-tag/blob/master/docs/usage.md

# ↓ --------------------------

  

title: Syshin # the main title

  

tagline: study blog # it will display as the sub-title

  

description: >- # used by seo meta and the atom feed

private study blog to keep track of my studies.

  

# fill in the protocol & hostname for your site, e.g., 'https://username.github.io'

url: "https://syshin0116.github.io"

  

github:

username: syshin0116 # change to your github username

  

twitter:

username: twitter_username # change to your twitter username

  

social:

# Change to your full name.

# It will be displayed as the default author of the posts and the copyright owner in the Footer

name: syshin

email: syshin0116@gmail.com # change to your email address

links:

# The first element serves as the copyright owner's link

# - https://twitter.com/username # change to your twitter homepage

- https://github.com/syshin0116 # change to your github homepage

# Uncomment below to add more social links

# - https://www.facebook.com/username

# - https://www.linkedin.com/in/username

  

google_site_verification: iZ5EsC_9koMmW-EeNF_TLz0vX3WZ7H1hOhzjKN8QBl4 # fill in to your verification string

  

# ↑ --------------------------

# The end of `jekyll-seo-tag` settings

  

google_analytics:

id: 'G-XZB0EYZF1G' # fill in your Google Analytics ID

# Google Analytics pageviews report settings

pv:

proxy_endpoint: 'https://syshin0116.du.r.appspot.com/query?id=agx2fnN5c2hpbjAxMTZyFQsSCEFwaVF1ZXJ5GICAgOjXh4EKDA'# fill in the Google Analytics superProxy endpoint of Google App Engine

cache_path: # the local PV cache data, friendly to visitors from GFW region

  

# Prefer color scheme setting.

#

# Note: Keep empty will follow the system prefer color by default,

# and there will be a toggle to switch the theme between dark and light

# on the bottom left of the sidebar.

#

# Available options:

#

# light - Use the light color scheme

# dark - Use the dark color scheme

#

theme_mode: # [light|dark]

  

# The CDN endpoint for images.

# Notice that once it is assigned, the CDN url

# will be added to all image (site avatar & posts' images) paths starting with '/'

#

# e.g. 'https://cdn.com'

img_cdn: "https://chirpy-img.netlify.app"

  

# the avatar on sidebar, support local or CORS resources

avatar: "/commons/avatar.jpg"

  

# boolean type, the global switch for TOC in posts.

toc: true

  

comments:

active: 'giscus'# The global switch for posts comments, e.g., 'disqus'. Keep it empty means disable

# The active options are as follows:

disqus:

shortname: # fill with the Disqus shortname. › https://help.disqus.com/en/articles/1717111-what-s-a-shortname

# utterances settings › https://utteranc.es/

utterances:

repo: # <gh-username>/<repo>

issue_term: # < url | pathname | title | ...>

# Giscus options › https://giscus.app

giscus:

repo: syshin0116/syshin0116.github.io # <gh-username>/<repo>

repo_id: "R_kgDOJd1hgw"

category: "General"

category_id: "DIC_kwDOJd1hg84CWOc4"

mapping: "pathname" # optional, default to 'pathname'

input_position: "top"# optional, default to 'bottom'

lang: # optional, default to the value of `site.lang`

reactions_enabled: # optional, default to the value of `1`

  

# Self-hosted static assets, optional › https://github.com/cotes2020/chirpy-static-assets

assets:

self_host:

enabled: # boolean, keep empty means false

# specify the Jekyll environment, empty means both

# only works if `assets.self_host.enabled` is 'true'

env: # [development|production]

  

pwa:

enabled: true # the option for PWA feature

  

paginate: 10

  

# ------------ The following options are not recommended to be modified ------------------

  

kramdown:

syntax_highlighter: rouge

syntax_highlighter_opts: # Rouge Options › https://github.com/jneen/rouge#full-options

css_class: highlight

# default_lang: console

span:

line_numbers: false

block:

line_numbers: true

start_line: 1

  

collections:

tabs:

output: true

sort_by: order

  

defaults:

- scope:

path: "" # An empty string here means all files in the project

type: posts

values:

layout: post

comments: true # Enable comments in posts.

toc: true # Display TOC column in posts.

# DO NOT modify the following parameter unless you are confident enough

# to update the code of all other post links in this project.

permalink: /posts/:title/

- scope:

path: _drafts

values:

comments: false

- scope:

path: ""

type: tabs # see `site.collections`

values:

layout: page

permalink: /:title/

- scope:

path: assets/img/favicons

values:

swcache: true

- scope:

path: assets/js/dist

values:

swcache: true

  

sass:

style: compressed

  

compress_html:

clippings: all

comments: all

endings: all

profile: false

blanklines: false

ignore:

envs: [development]

  

exclude:

- "*.gem"

- "*.gemspec"

- tools

- README.md

- CHANGELOG.md

- LICENSE

- rollup.config.js

- node_modules

- package*.json

  

jekyll-archives:

enabled: [categories, tags]

layouts:

category: category

tag: tag

permalinks:

tag: /tags/:name/

category: /categories/:name/

Google Analytics

This post is licensed under CC BY 4.0 by the author.

Docker

Git Blog SSG 비교