Minimal-mistakes: λ‹€μš΄λ‘œλ“œ ν›„ μž‘λ™λ˜λ©΄ 쒋을 κ²ƒμž…λ‹ˆλ‹€.

에 λ§Œλ“  2016λ…„ 04μ›” 24일  Β·  3μ½”λ©˜νŠΈ  Β·  좜처: mmistakes/minimal-mistakes

이전 λ²„μ „μ—μ„œλŠ” λ‹€μš΄λ°›μ•„ μ‹€ν–‰ν•œ ν›„ 멋진 μƒ˜ν”Œ μ‚¬μ΄νŠΈλ₯Ό λ³΄λ‹ˆ μœ„μ•ˆμ΄ λ˜μ—ˆμ–΄μš”

bundle exec jekyll serve

이 λ•Œλ¬Έμ— mm에 크게 λ¨Έλ¬Όλ €λ‹€. 마치 외ꡭ에 λˆˆμ„ κ°€λ¦° 채 λ‚΄λ €μ£ΌλŠ” 것 κ°™μ•˜κΈ° λ•Œλ¬Έμ΄λ‹€. μž‘λ™μ‹œν‚€λŠ” 데 μ–Όλ§ˆλ‚˜ μ‹œκ°„μ΄ 걸릴지 λͺ¨λ₯΄κ² μŠ΅λ‹ˆλ‹€.

이제 mmλŠ” amplify, jekyll-bootstrap 및 기타 μ‚¬μš©μžλ₯Ό 이 λ‹΅λ‹΅ν•œ ν™”λ©΄μœΌλ‘œ κ²°ν•©ν•©λ‹ˆλ‹€.

screen shot 2016-04-23 at 3 55 55 pm

λΉ„λͺ…을 지λ₯΄λ©° λ„λ§μΉ˜κ³  μ‹Άκ²Œ λ§Œλ“­λ‹ˆλ‹€.
μ‚¬λžŒλ“€μ΄ 볡제 λ“± 후에 νŒŒμΌμ„ λ³€κ²½ν•˜λ”λΌλ„
μ΅œμ†Œν•œ μ—¬κΈ°μ—μ„œ 1λ£¨κΉŒμ§€ 데렀닀 쀄 수 μžˆμŠ΅λ‹ˆκΉŒ?

Feedback Needed

κ°€μž₯ μœ μš©ν•œ λŒ“κΈ€

Gem 기반의 "λΉ λ₯Έ μ‹œμž‘" μ§€μΉ¨μœΌλ‘œ 인해 μ„€μΉ˜κ°€ μ™„μ „νžˆ μž‘λ™ν•˜μ§€ μ•ŠλŠ”λ‹€λŠ” 것을 μ•Œμ•˜μŠ΅λ‹ˆλ‹€. 정보λ₯Ό 검색할 λ•Œ 기둝된 이 문제λ₯Ό λ°œκ²¬ν–ˆμŠ΅λ‹ˆλ‹€. λ‚˜λŠ” 이것을 ν”Όλ“œλ°±μœΌλ‘œ κ²Œμ‹œν•˜κ³  λ™μΌν•œ 문제둜 μ—¬κΈ°μ—μ„œ 끝날 μˆ˜μžˆλŠ” λ‹€λ₯Έ μ‚¬λžŒλ“€μ„ λ„μšΈ 수 μžˆμŠ΅λ‹ˆλ‹€. λ‹€μŒμ€ κ²Œμ‹œλ¬Όμ΄ ν•˜λ‚˜λ§Œ ν¬ν•¨λ˜μ–΄ μžˆμ§€λ§Œ μ™„μ „ν•œ μž‘μ—… μ„€μΉ˜λ₯Ό μœ„ν•΄ μ €μ—κ²Œ 도움이 된 λ‹¨κ³„μž…λ‹ˆλ‹€.

$ gem install jekyll bundler
$ jekyll new jekyll-mm
$ cd jekyll-mm
$ sed -i -e 's/"minima".*/"minimal-mistakes-jekyll"/' Gemfile
$ bundle install
$ rm _config.yml index.md about.md
$ wget https://raw.githubusercontent.com/mmistakes/minimal-mistakes/master/_config.yml
$ echo 'theme: minimal-mistakes-jekyll' >> _config.yml
$ wget https://raw.githubusercontent.com/mmistakes/minimal-mistakes/master/index.html
$ sed -i -e 's/^layout: post/layout: single/' _posts/*welcome-to-jekyll.markdown
$ jekyll serve
  • 특히 제곡된 _config.yml 에 theme: minimal-mistakes-jekyll λ₯Ό μΆ”κ°€ν•΄μ•Ό ν•©λ‹ˆλ‹€. 이것이 μ—†μœΌλ©΄ μž‘λ™ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

λͺ¨λ“  3 λŒ“κΈ€

이것은 μ˜λ„λœ κ²ƒμ΄μ—ˆμŠ΅λ‹ˆλ‹€. λ‚˜λŠ” μ˜λ„μ μœΌλ‘œ λͺ¨λ“  데λͺ¨ κ²Œμ‹œλ¬Ό, νŽ˜μ΄μ§€ 및 μ»¬λ ‰μ…˜μ„ μ œκ±°ν–ˆμŠ΅λ‹ˆλ‹€. μ΄λŠ” _theme_의 일뢀가 μ•„λ‹ˆλΌ μ½˜ν…μΈ  이기 λ•Œλ¬Έμž…λ‹ˆλ‹€. μ–Όλ§ˆλ‚˜ λ§Žμ€ μ‚¬λžŒλ“€μ΄ μ œκ±°ν•  수 μžˆλŠ”μ§€(λ˜λŠ” μ œκ±°ν•΄μ•Ό ν•˜λŠ”μ§€) λ‹¨μ„œκ°€ μ—†λŠ”μ§€ λ†€λž„ κ²ƒμž…λ‹ˆλ‹€. 예λ₯Ό λ“€μ–΄ "ν…Œλ§ˆ μ„€μ •" νŽ˜μ΄μ§€λ₯Ό μ–Όλ§ˆλ‚˜ λ§Žμ€ 포크가 μœ μ§€ν–ˆλŠ”μ§€ μ•Œκ³  μžˆμŠ΅λ‹ˆκΉŒ? λ‹΅λ³€. 톀!

그리고 당신이 λ§ν–ˆλ“―μ΄:

μ‚¬λžŒλ“€μ΄ 볡제 λ“± 후에 νŒŒμΌμ„ λ³€κ²½ν•˜λ”λΌλ„

데λͺ¨ μ½˜ν…μΈ λ₯Ό μ œκ±°ν•΄μ•Ό ν•˜λŠ” 더 λ§Žμ€ 이유. μ–΄μ¨Œλ“  μ œκ±°ν•˜λ €λŠ” 경우 μ‚¬λžŒλ“€μ—κ²Œ μΆ”κ°€ 단계λ₯Ό μ œκ³΅ν•˜λŠ” μ΄μœ λŠ” λ¬΄μ—‡μž…λ‹ˆκΉŒ?

κ·ΈλŸΌμ—λ„ λΆˆκ΅¬ν•˜κ³  index.html νŽ˜μ΄μ§€λ₯Ό κ·ΈλŒ€λ‘œ λ‘μ—ˆκ³  κΈ°λ³Έ μ‚¬μ΄νŠΈλ‘œ μ΄λ™ν•©λ‹ˆλ‹€.

당신이 μ •λ§λ‘œ ν•΄μ„œλŠ” μ•ˆλ˜λŠ” gh-pages λΆ„κΈ°λ₯Ό μ‚¬μš©ν•˜λŠ” κ²ƒμ²˜λŸΌ λ³΄μž…λ‹ˆλ‹€.

master λ₯Ό μ‚¬μš©ν•˜λ©΄ κ²Œμ‹œλ¬Όμ΄ μ—†μ§€λ§Œ 정상적인 "졜근 κ²Œμ‹œλ¬Ό" ν™ˆνŽ˜μ΄μ§€κ°€ ν‘œμ‹œλ©λ‹ˆλ‹€. λ‚΄ gh-pages λΆ„κΈ°μ—λŠ” baseurl: /minimal-mistakes 이 μ„€μ •λ˜μ–΄ μžˆμŠ΅λ‹ˆλ‹€. 즉, baseurl λ•Œλ¬Έμ— bundle exec jekyll serve λ₯Ό μ‹€ν–‰ν•  λ•Œ http://localhost :4000/minimal-mistakes/μ—μ„œ μ•‘μ„ΈμŠ€ν•΄μ•Ό ν•©λ‹ˆλ‹€. baseurl . λ‚˜λŠ” amplify와 Jekyll-bootstrap이 같은 방식이고 GitHub νŽ˜μ΄μ§€μ—μ„œ ν”„λ‘œμ νŠΈλ₯Ό μ μ ˆν•˜κ²Œ μ œκ³΅ν•˜λ„λ‘ κΈ°λ³Έ URL이 μ„€μ •λ˜μ–΄ μžˆλ‹€κ³  κ°€μ •ν•©λ‹ˆλ‹€. ν•΄κ²°ν•˜κΈ° μ‰¬μš΄ 문제... _config.yml μ—μ„œ ν•΄λ‹Ή 행을 μ œκ±°ν•˜κ±°λ‚˜ localhost:4000 에 기본을 μΆ”κ°€ν•˜μ‹­μ‹œμ˜€.

μ—¬κΈ° λ‚΄ μ ‘κ·Ό 방식이 μžˆμŠ΅λ‹ˆλ‹€

  1. μžμ‹ 볡제 https://github.com/mmistakes/minimal-mistakes mymm
  2. 폴더λ₯Ό λ¬Άλ‹€
  3. μžμ‹ 클둠 https://github.com/mmistakes/minimal-mistakes-demo
  4. ν…œν”Œλ¦Ώμ„ 톡해 데λͺ¨ 파일 볡사:
    cp -r ./minimal-mistakes-demo ./mymm
    (μ•žμœΌλ‘œ λ‚΄ 파일이 λ“€μ–΄μžˆλŠ” ν΄λ”μ—μ„œ 이동할 κ²ƒμž…λ‹ˆλ‹€)
  5. λ²ˆλ“€ exec 지킬 μ„œλΈŒ

κ·Έ κ²°κ³Ό λ‹€μŒκ³Ό 같은 였λ₯˜ λ©”μ‹œμ§€κ°€ λ‚˜νƒ€λ‚©λ‹ˆλ‹€.

  Liquid Exception: The included file '/Users/mac/gits/jekyll/minimal-mistakes/_includes/feature-row' should exist and should not be a symlink in minimal-mistakes-demo/_pages/splash-page.md
jekyll 3.0.3 | Error:  The included file '/Users/mac/gits/jekyll/minimal-mistakes/_includes/feature-row' should exist and should not be a symlink

Gem 기반의 "λΉ λ₯Έ μ‹œμž‘" μ§€μΉ¨μœΌλ‘œ 인해 μ„€μΉ˜κ°€ μ™„μ „νžˆ μž‘λ™ν•˜μ§€ μ•ŠλŠ”λ‹€λŠ” 것을 μ•Œμ•˜μŠ΅λ‹ˆλ‹€. 정보λ₯Ό 검색할 λ•Œ 기둝된 이 문제λ₯Ό λ°œκ²¬ν–ˆμŠ΅λ‹ˆλ‹€. λ‚˜λŠ” 이것을 ν”Όλ“œλ°±μœΌλ‘œ κ²Œμ‹œν•˜κ³  λ™μΌν•œ 문제둜 μ—¬κΈ°μ—μ„œ 끝날 μˆ˜μžˆλŠ” λ‹€λ₯Έ μ‚¬λžŒλ“€μ„ λ„μšΈ 수 μžˆμŠ΅λ‹ˆλ‹€. λ‹€μŒμ€ κ²Œμ‹œλ¬Όμ΄ ν•˜λ‚˜λ§Œ ν¬ν•¨λ˜μ–΄ μžˆμ§€λ§Œ μ™„μ „ν•œ μž‘μ—… μ„€μΉ˜λ₯Ό μœ„ν•΄ μ €μ—κ²Œ 도움이 된 λ‹¨κ³„μž…λ‹ˆλ‹€.

$ gem install jekyll bundler
$ jekyll new jekyll-mm
$ cd jekyll-mm
$ sed -i -e 's/"minima".*/"minimal-mistakes-jekyll"/' Gemfile
$ bundle install
$ rm _config.yml index.md about.md
$ wget https://raw.githubusercontent.com/mmistakes/minimal-mistakes/master/_config.yml
$ echo 'theme: minimal-mistakes-jekyll' >> _config.yml
$ wget https://raw.githubusercontent.com/mmistakes/minimal-mistakes/master/index.html
$ sed -i -e 's/^layout: post/layout: single/' _posts/*welcome-to-jekyll.markdown
$ jekyll serve
  • 특히 제곡된 _config.yml 에 theme: minimal-mistakes-jekyll λ₯Ό μΆ”κ°€ν•΄μ•Ό ν•©λ‹ˆλ‹€. 이것이 μ—†μœΌλ©΄ μž‘λ™ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.
이 νŽ˜μ΄μ§€κ°€ 도움이 λ˜μ—ˆλ‚˜μš”?
0 / 5 - 0 λ“±κΈ‰