하루 기록

github blog 만들기 (1) : repo 생성 및 theme 적용하기 본문

Today I Learned/in dev

github blog 만들기 (1) : repo 생성 및 theme 적용하기

떼굴펜 2024. 10. 8. 13:55

1. repo 만들기

❗본인의 github name으로 변경해서 {userName}.github.io 으로 만들어야 함

 

2. build deployment 설정하기

 

 

3. repo clone 받기

 

4. blog theme 정하기

https://jekyllthemes.io/

 

Jekyll Themes – a curated directory

Find the best Jekyll themes for your next project – a curated directory of themes, templates and resources for building Jekyll websites.

jekyllthemes.io

 

구글에 검색하면 각종 테마사이트가 많다 골라서 zip 파일로 다운받는다.

나는 이 테마를 받아 clone 받은 repo 위치에 압축 풀어 넣어주었다.

 

5. ruby 설치

https://rubyinstaller.org/downloads/ 에서 최신 버전 받아서 설치

 

 

6. cmd prompot with ruby 에서 명령어ㅓㅓㅓ

작업표시줄 검색 상자에 Start Command Prompt with Ruby  검색 및 실행

 

6-1. encoding 하기

chcp 65001 

요렇게 보이면 성공

 

 

6-2. jeckll 설치

gem install jekyll

 

 

6-3. 사이트 생성

clone받은 repo 위치에서 실행해야 함

jekyll new .

 

 

6-4. 테스트

jekyll serve --watch

cmd에서 요렇게 보여준 server 주소로 접근하여, theme 가 정상인지 확인할 수 있다.

 

 

7. remote repo 에 push하기

정상 테스트까지 다했다면, remote repo 로 git commit & push 하기

잘 적용되었다면 본인 github blog 주소 (ex. https://reeny404.github.io/)로 접속했을 때 테스트했던 화면이 나오는 것을 확인할 수 있다.

 

 

 

8. 블로그 꾸미기는 어떻게 하지?

-> 이건 다음 글에서..