Welcome to Jekyll!

September 25, 2014 / By zip schedules / In Altametrics / Comments

Welcome to Jekyll!

You’ll find this post in your _drafts directory. When the post is in the draft directory is included, by default, when you build your site. If you would like to see the post you can run jekyll serve --drafts, which will generate your site with the draft article visibel. Use this for testing, before you publish your live site. The “more” tag below marks the separation point of the first paragraph to display on the blog listing page. When you are ready to publish the post, move it to your _posts directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run jekyll serve, which launches a web server and auto-regenerates your site when a file is updated.

To add new posts, simply add a file in the _posts directory that follows the convention YYYY-MM-DD-name-of-post.ext and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.

Sub-headings and highlighting

You can see above that if you want to add a sub-heading, you an use the h2 tag. To highlight some text, you can use the left single quote character.

You can add a block quote as follows:

The dreams of yesterday are the hopes of today and the reality of tomorrow. Science has not yet mastered prophecy. We predict too much for the next year and yet far too little for the next ten.

You can also highlight a block of text as follows:

def print_hi(name)
  puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.

To add a link to a file use this text - get the PDF directly.

To insert an image in your post type the html, as follows:

Post Sample Image

Check out the Jekyll docs for more info on how to get the most out of Jekyll. File all bugs/feature requests at Jekyll’s GitHub repo. If you have questions, you can ask them on Jekyll Talk.



Online employee shift planning has never been easier. Try it free for 30 days.