Fork me on GitHub

How to post to the class blog from the command line

by Jaleesa Powell

16 Oct 2013

How to post to the class blog from the command line

  • First, you will need to develop your post locally. Create a new markdown file in the _posts directory. Once you're done editing this file, make sure you save it before moving on to the next step.
  • Then, preview your changes locally to make sure they actually work with Github / Jekyll and don't break the site. To do this, try running jekyll server in the background. source /home/jaleesa/.rvm/scripts/rvm jekyll serve --watch

Everything Works! The screenshot.

  • If everything looks good and your post is showing up with no problems, add your post to the git stage.
  • Commit the changes. Make sure you're putting a descriptive message with your commits.
  • Push to your own repository.
git add $YOURPOST
git commit -m $YOURMESSAGE
git push $YOURREPOSITORY
  • Create a pull request to have your post reviewed by the committers on the class blog.
Jaleesa is a second-year MSIS student at the University of North Carolina at Chapel Hill. Jaleesa is a Web Intern at the UNC General Alumni Association and the Digitization Intern at Campbell University. Find Jaleesa Powell on Twitter, Github, and on the web.
comments powered by Disqus