git
ruby
jekyll
+ bundler
gem install jekyll bundler
Fork
button near top right:
Code
dropdown and copy clone url using SSHcd ~/development # or wherever you want to save your local repo
git clone [email protected]:myusername/jekyll-blog-demo
cd jekyll-blog-demo
Gemfile
bundle install
--livereload
to restart manually on updatesbundle exec jekyll serve --livereload
jekyll new ...
projectpage
uses layout
page
layout
contains an include
for listing itemsitem
is output to a new layout
title
and subtitle
in the frontmatter
and some lorem in the main content (below the frontmatter)published
setting in the frontmatterboolean
field type (values: true
| false
)yaml
supports a wide range of "valid" boolean values, but true
/ false
is most common.published
setting is false
.collection
, section
and page
from the _config.yml
published=true
published=false
bowtie-co/jekyll-blog-demo
)# Build compiled static site (default out dir: "_site")
bundle exec jekyll build
# Copy/deploy contents from _site/* to web server/provider
Dockerfile
+ docker-compose.yml
filesdocker-compose up
starts the app (same as jekyll start
)