Skip to content

Instantly share code, notes, and snippets.

@manualbashing
Last active October 31, 2019 09:58
Show Gist options
  • Select an option

  • Save manualbashing/9777dbffd3286df41e6d38db936857c8 to your computer and use it in GitHub Desktop.

Select an option

Save manualbashing/9777dbffd3286df41e6d38db936857c8 to your computer and use it in GitHub Desktop.
Blogging with Jekyll and Github pages
$jekyll = 'docker run -it --rm --volume=C:\Users\m.batsching\git\manualbashing\:/srv/jekyll --volume=cache:/usr/local/bundle -p 4000:4000 jekyll/jekyll jekyll'

# Get the jekyll version
iex "$jekyll --version" | Select-Object -Last 1

# Create a new blog
iex "$jekyll new . --force"

# Serve the pages to http://localhost:4000
iex "$jekyll serve"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment