Github Pages: Static Site generation with Jeykll
Jekyll Overview
Local Preview using Jekyll
sudo gem install jekyll
Initialize Jekyll
jekyll new .
# or
jekyll new . --force
Start local server
bundle exec jekyll serve
bundle exec jekyll serve --livereload --incremental
File Structure
Priority
index.htmlindex.mdREADME.md
Jekyll Configuration
_config.yml
baseurl: "/Coder"
url: "https://markusdoppler.github.io"
YAML Front Matter
---
title: Page Title
---
use data in Fluid template as such
site.title
Custom Jekyll Theme
- Copy theme folders from e.g. the
minimatheme
open $(bundle info --path minima)
- in
_config.ymlremove jekyll theme
# theme: minima
- in the
Gemfileremove jekyll theme dependence
# gem "minima", "~> 2.5"
- type
bundle update - type
bundle exec jekyll serve --livereload