How To Deploy a Jekyll Blog
So after getting my blog up and running I figured I would do a quick how-to, on how to get a blog up and running. Its actually something you can do in less than 15 minutes.
1~ $ gem install jekyll
2~ $ jekyll new myblog
3~ $ cd myblog
4~/myblog $ jekyll serve
5# => Now browse to http://localhost:4000 and you will see the blog running!
Easy Enough? Now how do you create a blog post?
Create a file with the following name in the _posts directory.
1# Create a file with the following syntax
3# Example: 2015-09-08-hi-to-my-new-blog.md
Edit the above file and add this content. The format is done in markdown which is a very easy to write code. You can find some quick information here
3title: "How To Deploy a Jekyll Blog"
7Type your blogpost here.
Once you save your file, you can refresh your browser pointing to http://127.0.0.1:4000 and see your change. Once you are happy with your content you have two ways to publish this to the internet.
Your own host.
Run the following command and then upload the content in the _site directory.
GitHub Pages You can also load the site into GitHub pages and have a fully functioning site at username.github.io You can use the following link for details. Host Jekyll Site using GitHub Pages
Once you get it all up and running you can look at other themes that you can clone from github and port over your posts and content.
Be on the lookout for a future blogpost on how to get an Ubuntu Server running NGINX to host your Jekyll Blog.comments powered by Disqus