Serve example.com/blog from the same Jekyll setup as example.com:
cd ~/example.com→ Root dircd _includes→ Addblogskin.htmlwith CSS/JScd _layouts→ Createbloglayout that includesblogskin.htmlmkdir blog→ Create index for/blogwithlayout: blog- Add permalink format:
echo "permalink: /blog/:title.html" >> _config.yml
Now jekyll build && jekyll server will serve example.com/blog!
This was learned while preparing Yeoman’s team blog.
“@GNUmanth good notes! Thanks for helping us get the setup right for yeoman.io.” — @addyosmani
#jekyll#cli