github 블로그 만들기 - 설치

oneofakindscene·2021년 2월 7일
0

github

목록 보기
2/7

설치

  • [본인아이디].github.io 라는 이름의 Repository 만들기
  • 폴더 만들고 clone하기
> cd [Repository를 저장할 폴더]
> git clone [복사한 주소]
  • Jekyll(지킬) Themes 테마 다운로드(링크)
    ⇒(참고) Centrarium이라는 테마를 선택함

  • 테마 적용하기

    다운받은 테마 ⇒ 압축풀고 ⇒ git clone한 폴더에 압축푼 폴더 및 파일들 담아주기

    아래 command처럼 설치해주기

# ruby 설치
> sudo apt install ruby-full
> sudo gem install bundle
> bundle install
  • 테마의 주소 변경하기 ⇒ _config.yml 파일 수정
> cd [테마설치한폴더]
> vim _config.yml

# _config.yml 수정사항
baseurl: "" # 여기는 ""으로 둘것
url: "https://[설정한github아이디or주소].github.io/" # the base hostname & protocol for your site
  • 위 내용들 add/push/commit하여 github에 반영
> git add .
> git commit -m "Theme changed"
> git push
profile
oneofakindscene

0개의 댓글