๋ณธ๋ฌธ์œผ๋กœ ๊ฑด๋„ˆ๋›ฐ๊ธฐ

Jekyll ์‹œ์ž‘ํ•˜๊ธฐ

Quickstart

Jekyll Docs์˜ Getting Started๋ฅผ ์ฝ๊ณ  ์‹œ๋„ํ•ด๋ณธ ๊ธฐ๋ก.


๋น ๋ฅธ ์‹œ์ž‘#


Jekyll์€ ์ •์  ์‚ฌ์ดํŠธ ์ƒ์„ฑ๊ธฐ.

Markdown, HTML ๋“ฑ ์›ํ•˜๋Š” markup language๋กœ staticํ•œ ์›น์‚ฌ์ดํŠธ๋ฅผ ๋งŒ๋“ค ์ˆ˜ ์žˆ๋‹ค.

URL์˜ ๋ชจ์Šต๊ณผ ์‚ฌ์ดํŠธ์— ๋ฐ์ดํ„ฐ๋ฅผ ์›ํ•˜๋Š” ๋Œ€๋กœ ํ‘œ์‹œํ•  ์ˆ˜ ์žˆ๋‹ค.


์„ ์ˆ˜ ์กฐ๊ฑด#

Installation


Instructions#

  1. ๋ฃจ๋น„ ๊ฐœ๋ฐœ ํ™˜๊ฒฝ ์„ค์น˜ํ•˜๊ธฐ

  2. Jekyll๊ณผ bundler gems ์„ค์น˜ํ•˜๊ธฐ

    gem install jekyll bundler
  3. ์ƒˆ Jekyll site ์ƒ์„ฑํ•˜๊ธฐ  ./myblog

    jekyll new myblog
  4. ์ƒ์„ฑํ•œ Jekyll site ๋””๋ ‰ํ† ๋ฆฌ๋กœ ์ด๋™

    cd myblog
  5. ์‚ฌ์ดํŠธ๋ฅผ ๋นŒ๋“œํ•˜๊ณ  ๋กœ์ปฌ ์„œ๋ฒ„๋กœ ์ ‘์† ๊ฐ€๋Šฅํ•˜๊ฒŒ ๋งŒ๋“ค๊ธฐ

    bundle exec jekyll serve
  6. http://localhost:4000 ์ฃผ์†Œ๋กœ ์ ‘์†ํ•˜๊ธฐ


Ruby101#


Jekyll์€ Ruby๋กœ ์ž‘์„ฑ๋˜์—ˆ๋‹ค.


Gems#

gem์€ Ruby ํ”„๋กœ์ ํŠธ์— ํฌํ•จ์‹œํ‚ฌ ์ˆ˜ ์žˆ๋Š” ์ฝ”๋“œ์ด๋‹ค.

gem์€ Ruby ํ”„๋กœ์ ํŠธ์˜ ๊ธฐ๋Šฅ์„ ํŒจํ‚ค์ง€ํ•˜๊ณ  ๋‹ค๋ฅธ ํ”„๋กœ์ ํŠธ๋‚˜ ๋‹ค๋ฅธ ์‚ฌ๋žŒ๋“ค๊ณผ ๊ณต์œ ํ•  ์ˆ˜์žˆ๋„๋ก ํ•ด์ค€๋‹ค.

gem์€ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ๊ธฐ๋Šฅ์„ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ๋‹ค.

  • Ruby ๊ฐ์ฒด๋ฅผ JSON์œผ๋กœ ๋ณ€ํ™˜

  • Pagination (์ชฝ์ˆ˜ ๋งค๊ธฐ๊ธฐ) ?

  • Github ๊ฐ™์€ API์™€์˜ ์ƒํ˜ธ์ž‘์šฉ

  • Jekyll ์ž์ฒด ์—ญ์‹œ gem์ด๊ณ , jekyll-feed, jekyll-seo-tag, jekyll-archives์™€ ๊ฐ™์€ Jekyll ํ”Œ๋Ÿฌ๊ทธ์ธ๋“ค ๋˜ํ•œ gem์ด๋‹ค.


Gemfile#

Gemfile์€ ์‚ฌ์ดํŠธ์— ํ•„์š”ํ•œ gems์˜ ๋ฆฌ์ŠคํŠธ๋ฅผ ๊ธฐ๋กํ•ด๋†“์€ ํŒŒ์ผ์ด๋‹ค. ๋‹จ์ˆœํ•œ Jekyll site๋ผ๋ฉด

source "https://rubygems.org"
gem "jekyll"
group :jekyll_plugins do  gem "jekyll-feed"  gem "jekyll-seo-tag"end

Bundler#

์•„์ง ์ดํ•ดํ•˜์ง€ ๋ชปํ–ˆ๋‹ค.

Bundler installs the gems in your Gemfile. Itโ€™s not a requirement for you to use a Gemfile and bundler however itโ€™s highly recommended as it ensures youโ€™re running the same version of Jekyll and Jekyll plugins across different environments.

gem install bundler installs Bundler. You only need to install it once โ€” not every time you create a new Jekyll project. Here are some additional details:

If youโ€™re using a Gemfile you would first run bundle install to install the gems, then bundle exec jekyll serve to build your site. This guarantees youโ€™re using the gem versions set in the Gemfile. If youโ€™re not using a Gemfile you can just run jekyll serve.

For more information about how to use Bundler in your Jekyll project, this tutorial should provide answers to the most common questions and explain how to get up and running quickly.

Using Jekyll with Bundler


Jekyll ์ปค๋ฎค๋‹ˆํ‹ฐ#


Jekyll ํ”„๋กœ์ ํŠธ์— Contribute ํ•  ์ˆ˜ ์žˆ๋Š” ๋ฐฉ๋ฒ•๊ณผ ๋ฌธ์„œ ๋ชจ์Œ, Jekyller๋“ค๊ณผ ๋Œ€ํ™”ํ•  ์ˆ˜์žˆ๋Š” ์ปค๋ฎค๋‹ˆํ‹ฐ ๋ชจ์Œ๋“ค์ด๋‹ค.

Community