본문으로 바로가기

[Github] jekyll 테마 적용

category Github 2022. 1. 12. 22:18

※테마 적용 방법

  1. Jekyll 에서 마음에 드는 테마 선택 homepage 들어간다.(해당 레포 github 홈페이지)
  2. Fork 누른다.
  3. 나의 레포에서 settings 들어가고 Repository name 변경한다.

Ex) 본인 닉네임.github.io  (대소문자가 상관 있는지는 모르겠다.)

  1. 접속

=> https://gimtaegyun.github.io/

 

※주의 : 404 에러가 발생 있음. 해당 경우에는 빌드가 아직 안된 경우일 있으니 10 정도 기다린 재시도 한다.

※수정 방법

  1. 해당 pc 레포 저장

$ cd [Repository 저장할 폴더 위치] 

$> git clone https://github.com/GimTaeGyun/gimtaegyun.github.io.git

  1. 해당 폴더에서 수정
  2. Commit

$ cd [Repository 저장할 폴더 위치] 

$ git add . 

$ git commit -m '메시지 입력' 

$ git push origin master

 

 

 

 

※실시간 수정(commit 없이)

  1. Ruby 설치 (다운로드 전부 next)

=> https://rubyinstaller.org/downloads/

 

 

  1. 설치 확인

$> ruby -v

버전 나오면 설치 완료

  1. Jekyll bundler 패키지 설치

=> 윈도우 + R 키를 누르고 'Start Command Prompt with Ruby' 실행

 

아래 명령어 차례대로 입력

$> gem install jekyll bundler

$> gem install jekyll

$> gem install minima

$> gem install bundler

$> gem install jekyll-feed

$> gem install tzinfo-data

$> gem install bundler

 

해당 패키지 설치 실행했을 같은 경우 아래 에러가 났다.

구글링 추가로 설치 

$> gem install webrick

 

 

  1. 실행

$>  cd [Repository 저장할 폴더 위치] 

$> jekyll serve

  1. 주소창에 localhost:4000 입력 접속 확인