Jekyll로 첫 사이트 만들어보기

Jekyll을 깔았으니 이제 실제로 돌려보자. 얘네들이 제공하는 빠른 시작 설명서에 나와있는걸 그대로 따라할거다.

일단, 페이지들은 모아두는게 좋을 것 같아서 홈 폴더에서 따로 폴더를 만들었다.

$ mkdir -p dev/web/jekyll

바로 설명서대로 진행해보자.

/dev/web/jekyll$ jekyll new myblog
Running bundle install in jekyll/myblog... 


Your user account isn't allowed to install to the system RubyGems.
  You can cancel this installation and run:

      bundle install --path vendor/bundle

  to install the gems into ./vendor/bundle/, or you can enter your password
  and install the bundled gems to RubyGems using sudo.

  Password: 
  Bundler: The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
  Bundler: Fetching gem metadata from https://rubygems.org/...........
  Bundler: Fetching gem metadata from https://rubygems.org/.
  Bundler: Resolving dependencies...
  Bundler: Using public_suffix 3.0.1
  Bundler: Using addressable 2.5.2
  Bundler: Using bundler 1.16.1
  Bundler: Using colorator 1.1.0
  Bundler: Using concurrent-ruby 1.0.5
  Bundler: Using eventmachine 1.2.5
  Bundler: Using http_parser.rb 0.6.0
  Bundler: Using em-websocket 0.5.1
  Bundler: Using ffi 1.9.21
  Bundler: Using forwardable-extended 2.6.0
  Bundler: Using i18n 0.9.4
  Bundler: Using rb-fsevent 0.10.2
  Bundler: Using rb-inotify 0.9.10
  Bundler: Using sass-listen 4.0.0
  Bundler: Using sass 3.5.5
  Bundler: Using jekyll-sass-converter 1.5.2
  Bundler: Using ruby_dep 1.5.0
  Bundler: Using listen 3.1.5
  Bundler: Using jekyll-watch 2.0.0
  Bundler: Using kramdown 1.16.2
  Bundler: Using liquid 4.0.0
  Bundler: Using mercenary 0.3.6
  Bundler: Using pathutil 0.16.1
  Bundler: Using rouge 3.1.1
  Bundler: Using safe_yaml 1.0.4
  Bundler: Using jekyll 3.7.2
  Bundler: Fetching jekyll-feed 0.9.3
  Bundler: Installing jekyll-feed 0.9.3
  Bundler: Fetching jekyll-seo-tag 2.4.0
  Bundler: Installing jekyll-seo-tag 2.4.0
  Bundler: Fetching minima 2.3.0
  Bundler: Installing minima 2.3.0
  Bundler: Bundle complete! 4 Gemfile dependencies, 29 gems now installed.
  Bundler: Use `bundle info [gemname]` to see where a bundled gem is installed.
New jekyll site installed in jekyll/myblog. 

사이트가 만들어진 것 같으니, 설명서대로 구동해보자.

jekyll$ cd myblog/
jekyll/myblog$ jekyll serve
Configuration file: jekyll/myblog/_config.yml
            Source: jekyll/myblog
       Destination: jekyll/myblog/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
                    done in 0.504 seconds.
 Auto-regeneration: enabled for 'jekyll/myblog'
    Server address: http://127.0.0.1:4000/
  Server running... press ctrl-c to stop.

서버가 구동중이라는 메세지가 출력됐다. 친절히 알려준대로 해당 주소로 접속해보자.

스크린샷, 2018-02-11 19-12-20

예시에 나와있는 localhost:4000에 들어가보면, 이제 막 태어난 멋진 블로그가 보일 것이다.