-
Clone the weblog repository
$ git clone git@github.com:rails/weblog.git
-
Checkout the gh-pages branch
$ cd weblog && git checkout gh-pages
-
Create a post in the _posts directory with the date and permalink in the name
$ vi _posts/YYYY-MM-DD-permalink.format
-
Write your post
--- layout: post title: Your post title categories: [Releases,Edge] author: Your Name published: true date: 2012-03-07 19:22:00 +00:00 --- Your post content in HTML, Textile or Markdown format
-
Commit and push
$ git add . && git commit -m 'My commit message' && git push
-
There is no step six - GitHub will rebuild the _site directory
-
When embedding an image, make a copy in the /assets directory if possible.
-
When adding a new category, add the category index page as well.
-
Try to avoid using of inline style definitions as they make redesigning harder in the future.
-
Use
<h2>
tags (## in Markdown) for red headings and<h3>
tags (### in Markdown) for black headings - do not use a single line paragraph with bold text as the margin spacing will be incorrect.