Jekyll ์์ํ๊ธฐ
Jekyll Docs์ Getting Started๋ฅผ ์ฝ๊ณ ์๋ํด๋ณธ ๊ธฐ๋ก.
#
๋น ๋ฅธ ์์Jekyll์ ์ ์ ์ฌ์ดํธ ์์ฑ๊ธฐ.
Markdown, HTML ๋ฑ ์ํ๋ markup language๋ก staticํ ์น์ฌ์ดํธ๋ฅผ ๋ง๋ค ์ ์๋ค.
URL์ ๋ชจ์ต๊ณผ ์ฌ์ดํธ์ ๋ฐ์ดํฐ๋ฅผ ์ํ๋ ๋๋ก ํ์ํ ์ ์๋ค.
#
์ ์ ์กฐ๊ฑด#
InstructionsJekyll๊ณผ bundler gems ์ค์นํ๊ธฐ
gem install jekyll bundler
์ Jekyll site ์์ฑํ๊ธฐ
./myblog
jekyll new myblog
์์ฑํ Jekyll site ๋๋ ํ ๋ฆฌ๋ก ์ด๋
cd myblog
์ฌ์ดํธ๋ฅผ ๋น๋ํ๊ณ ๋ก์ปฌ ์๋ฒ๋ก ์ ์ ๊ฐ๋ฅํ๊ฒ ๋ง๋ค๊ธฐ
bundle exec jekyll serve
http://localhost:4000 ์ฃผ์๋ก ์ ์ํ๊ธฐ
#
Ruby101Jekyll์ Ruby๋ก ์์ฑ๋์๋ค.
#
Gemsgem์ Ruby ํ๋ก์ ํธ์ ํฌํจ์ํฌ ์ ์๋ ์ฝ๋์ด๋ค.
gem์ Ruby ํ๋ก์ ํธ์ ๊ธฐ๋ฅ์ ํจํค์งํ๊ณ ๋ค๋ฅธ ํ๋ก์ ํธ๋ ๋ค๋ฅธ ์ฌ๋๋ค๊ณผ ๊ณต์ ํ ์์๋๋ก ํด์ค๋ค.
gem์ ๋ค์๊ณผ ๊ฐ์ ๊ธฐ๋ฅ์ ์ํํ ์ ์๋ค.
Ruby ๊ฐ์ฒด๋ฅผ JSON์ผ๋ก ๋ณํ
Pagination (์ชฝ์ ๋งค๊ธฐ๊ธฐ) ?
Github ๊ฐ์ API์์ ์ํธ์์ฉ
Jekyll ์์ฒด ์ญ์ gem์ด๊ณ , jekyll-feed, jekyll-seo-tag, jekyll-archives์ ๊ฐ์ Jekyll ํ๋ฌ๊ทธ์ธ๋ค ๋ํ gem์ด๋ค.
#
GemfileGemfile์ ์ฌ์ดํธ์ ํ์ํ 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.
#
Jekyll ์ปค๋ฎค๋ํฐJekyll ํ๋ก์ ํธ์ Contribute ํ ์ ์๋ ๋ฐฉ๋ฒ๊ณผ ๋ฌธ์ ๋ชจ์, Jekyller๋ค๊ณผ ๋ํํ ์์๋ ์ปค๋ฎค๋ํฐ ๋ชจ์๋ค์ด๋ค.