make github blog

less than 1 minute read

πŸ¦• make github blog

github blog

λ§Œλ“€κΈ°κΉŒμ§€

(username).github.io 둜 repository 이름을 μ •ν•œλ‹€.

ruby μ„€μΉ˜ μœ„ν•΄μ„œ hombebrew μ„€μΉ˜.

  • ruby μ„€μΉ˜
$ brew install rbenv ruby-build
$ rbenv install (version)
  • jekyll μ„€μΉ˜

$ sudo gem install jekyll bundler

  • make local repository

$ git clone https://github.com/hyun99999/hyun99999.github.io.git

  • 클둠받은 폴더 λ‚΄μ—μ„œ jekyll 생성
$ jekyll new ./
$ bundle install
  • μƒμ„±λœ μ‚¬μ΄νŠΈ μ‹€ν–‰ $ bundle exec jekyll serve

  • 개발용 μ„œλ²„ 확인 http://localhost:4000 에 접속

ν…Œλ§ˆμ μš©

https://github.com/topics/jekyll-theme μ—μ„œ ν…Œλ§ˆ λ‹€μš΄λ‘œλ“œ.

λ‚΄κ°€ κ³ λ₯Έ ν…Œλ§ˆ

https://github.com/mmistakes/minimal-mistakes

  • jekyll μ„€μΉ˜ν•œ ν΄λ”λ‘œ 볡사

  • ν”ŒλŸ¬κ·ΈμΈ μ„€μΉ˜

$ bundle install

  • μ„œλ²„ μ‹€ν–‰ $ bundle exec jekyll serve

  • 적용된 ν…Œλ§ˆ local μ„œλ²„λ₯Ό ν†΅ν•΄μ„œ 확인

  • λ°°ν¬ν•˜κΈ°(github 에 μ˜¬λ¦°λ‹€.)
    $ git add .
    $ git commit -m "..."
    $ git push origin master
    
  • build fail

https://github.com/mmistakes/minimal-mistakes#remote-theme-method https://mmistakes.github.io/minimal-mistakes/docs/quick-start-guide/#github-pages-method

μ°Έμ‘°ν•΄μ„œ ν•΄κ²°.

μƒˆ κΈ€ μž‘μ„±

  • _posts 디렉토리에 μƒˆ νŒŒμΌμ„ λ§Œλ“¬. ```swift Jekyll 이 이 νŒŒμΌμ„ λΈ”λ‘œκ·Έ 포슀트둜 μΈμ‹ν•˜κ²Œ ν•˜λ €λ©΄ 파일λͺ…을 λ‹€μŒ ν˜•μ‹μ— λ§žμΆ°μ•Ό ν•©λ‹ˆλ‹€: YEAR-MONTH-DAY-title.MARKUP

μ—¬κΈ°μ„œ YEAR λŠ” λ„€ 자리의 숫자, MONTH 와 DAY λŠ” 두 자리 숫자이고, ν™•μž₯자 λΆ€λΆ„μ˜ MARKUP 은 νŒŒμΌμ— μ‚¬μš©λœ λ§ˆν¬λ‹€μš΄ ν¬λ§·μž…λ‹ˆλ‹€. μ˜¬λ°”λ₯Έ 포슀트 파일λͺ…을 예둜 λ“€λ©΄ λ‹€μŒκ³Ό κ°™μŠ΅λ‹ˆλ‹€ 2011-12-31-new-years-eve-is-awesome.md 2012-09-12-how-to-write-a-blog.md ```

좜처

μΆœμ²˜γ…£https://jetalog.net/87?category=808871

μΆœμ²˜γ…£https://jekyllrb-ko.github.io/docs/posts/

μΆœμ²˜γ…£[choi2]https://iamcho2.github.io/2020/09/16/make-my-own-github-blog

Categories:

Updated: