Jekyll Setup Guide for Ubuntu

Jekyll 설치

설치

sudo apt-get install -y ruby-full build-essential zlib1g-dev

echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

gem install jekyll bundler

Gemfile 적용

bundle

블로그 생성

jekyll new [Project]

블로그 동작

jekyll serve --host 0.0.0.0

Github 테마 설정

Github 테마 홈페이지

https://mmistakes.github.io/

Gemfile 수정

gem "minimal-mistakes-jekyll"

Gemfile 적용

bundle

_config.yml 파일 수정

theme: minimal-mistakes-jekyll
minimal_mistakes_skin: "dark"

defaults:
  # _posts
  - scope:
      path: ""
      type: posts
    values:
      layout: single
      author_profile: true
      read_time: true
      comments: true
      share: true
      related: true