- Create a new branch: https://github.com/blog/1377-create-and-delete-branches
Ideally pick a branch name like "sf-add-post-whatever-the-post-title-is", where "sf" are your initials. E.g. "al-add-post-new-teams"
Confirm you're on the new branch by looking at the current URL. The branch name should be part of it.
-
Navigate to the
blog/_posts
directory -
Add a new file for your post: https://github.com/blog/1327-creating-files-on-github
The filename should follow the naming convention of the existing blog posts: https://github.com/rails-girls-summer-of-code/summer-of-code/tree/gh-pages/blog/_posts. The file extension will determine the format used. Use .md
for Markdown.
- Add the Jekyll header for the meta data
See https://raw.github.com/RailsGirlsBerlin/summer-of-code/gh-pages/blog/_posts/2013-06-12-hello-world.md for an example. Include the top section including the ---
lines and change the attributes where required (probably all of them except the layout
attribute).
- Add your blog post text
- Save the file
- Send a pull request: https://help.github.com/articles/creating-a-pull-request
That post explains more than you need. It should work if you just hit the "Pull Request" button, add a title and submit it (target branch and repository names should all default to the right stuff).
Under #4, the link to https://raw.github.com/RailsGirlsBerlin/summer-of-code/gh-pages/blog/_posts/2013-06-12-hello-world.md no longer works