How Do I Blog With Jekyll?

When you’re ready to get started with blogging, you’ll want to choose a platform. Jekyll is a great platform because it’s simple to use and has a lot of features.

To get started, you’ll need to install Jekyll and Ruby. Then, you’ll need to create a new blog using the Jekyll command line tool. Here’s how:.

First, install Jekyll by following the instructions on the Jekyll website.

Next, install Ruby by following the instructions on the Ruby website.

Next, create a new directory for your blog using the command line tool. For example, if your blog name is “myblog”, then you would type the following command into your terminal:

cd myblog

To start using Jekyll, you’ll first need to install some plugins. To do this, type the following command into your terminal:

jekyll plugin install gh-pages
This will install the gh-pages plugin which will allow you to generate HTML pages using Jekyll. You can also use other plugins to extend Jekyll’s functionality.

For example, the atom plugin allows you to write and publish your posts using Atom. You can find more information about plugins on the Jekyll website.

Once you have installed the plugins and created your blog, you’re ready to start writing your posts. To do this, first create a new file called post.rb inside your blog’s directory and add the following code:

require ‘jekyll’

include_tag ‘header’

@posts = []

def self.header()

html = <<-EOS

Hello World!

EOS

end

Then, add the following code to post.rb to create an empty post:
2) Define The Posts Model & Data Structure

def posts @posts = [] end def self.header() html = <<-EOS

Hello World!

EOS end.

Related Posts