September 25, 2014 / By
/ 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:
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: