[Git] Git 블로그 만들기(3) jekyll theme 적용

이경은·2022년 1월 17일
0

1. 테마 선택

jamstackthemes.dev

jekyllthemes.org

jekyllthemes.io

jekyll-themes.com

2. 테마 적용하기

1) 원하는 테마의 git repository로 이동

  • repository를 download zip
  • clone을 사용하는 방법도 있지만 downlaod가 편한 것 같음.

2) 다운로드한 폴더 열기

  • 다운로드한 폴더의 압축을 풀어줌.
  • 전체 파일 복사

3) username.github.io에 붙여넣기

  • 위에서 복사한 파일 전부를 붙여넣음
  • 동일한 이름 파일은 덮어쓰기

4) bundle 명령어 실행

  • command나 git bash에서 username.github.io 경로에 이동해서 아래 명령 실행
bundle install
bundle exec jekyll serve

5) 로컬 서버 접속

  • 다시 127.0.0.1:4000에 접속하면 테마가 적용된 페이지가 나옴.
  • 이대로 push해도 되고, 변경해서 push해도 됨.

3. 블로그 설정

  • _conif.yml 파일에서 제목이나 이름 등을 변경함.
  • _post에 markdown 파일을 추가해서 글(포스트) 추가.
  • 원격에 push
git add .
git commit -m "commit message"
git push

[참조]
https://zeddios.tistory.com/1222
https://zeddios.tistory.com/1223
https://ogaeng.com/jekyll-blog-install/
https://velog.io/@zawook/Github-%EB%B8%94%EB%A1%9C%EA%B7%B8-%EB%A7%8C%EB%93%A4%EA%B8%B0-2
https://velog.io/@minji-o-j/jekyll-%EC%98%A4%EB%A5%98-%ED%95%B4%EA%B2%B0

profile
Web Developer

0개의 댓글