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
About Hemanth HM
Hemanth HM is a Sr. Machine Learning Manager at PayPal, Google Developer Expert, TC39 delegate, FOSS advocate, and community leader with a passion for programming, AI, and open-source contributions.