Skip to content

promet/promet.github.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f4f2456 · Dec 10, 2012
Jun 2, 2012
Jun 8, 2012
Aug 30, 2012
Nov 12, 2012
Jun 8, 2012
Jun 21, 2012
Jun 22, 2012
Dec 10, 2012
Jun 8, 2012
Sep 28, 2011
Sep 22, 2011
Aug 11, 2012
Sep 22, 2011
Jul 23, 2011
Jun 21, 2012
Jun 21, 2012
Jun 13, 2012
Jun 12, 2012
Jul 3, 2012
Jun 8, 2012
Jul 16, 2011
Aug 22, 2011
Jun 8, 2012
Jun 20, 2012
Jun 8, 2012
Jun 8, 2012

Repository files navigation

LinuxSysadmin Blog

Installation

Dependencies

  • Ruby 1.9.2
  • Bundler

Quick Start

git clone [email protected]:promet/promet.github.com.git blog
cd blog
bundle install

Usage

  • NEVER push to master
  • Update the blog the same way you would update code
  • Posts in are ./source/_posts
  • Branch off master or work locally for longer running articles
  • Always work off the source branch

Initial setup

Before you can publish your first changes you will have to bootstrap your environment. For this run:

rake bootstrap

Creating a new Post

  1. Make sure you have the most recent posts
git pull
  1. Use the built-in Rake task to generate the necessary files:
rake new_post["Title for my new blogpost"]
  1. Open the generated markdown file
  2. Add metadata to the YAML front matter ('author' should correspond to a key in _config.yml):
author: marius-ducea
categories: [Install, Setup, etc]
published: false # working draft, will not be published on generate
  1. Write content
  2. Generate & Preview
rake generate && rake preview # Watches and mounts a webserver at http://0.0.0.0:4000

Publishing

  1. Add and push your changes to github
git add [your changes]
git push origin source
  1. Deploy your changes
rake deploy

In a few moments, see your new article published on the blog!

Resources