trushkevich / altoros.github.com

Collective blog written by developers from Altoros

Home Page:http://altoros.github.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hi, this is collective blog of developers in Altoros company. This is show cheatsheet for those from you who would like to contribute some contents here. The blog is using jekyll static site generator and hosted at github pages, so please read corresponding resources to you need to learn more.

To be accepted your post should follow these simple rules:

  1. To have name like _posts/%Y-%m-%d-%{slug}.markdown. You can easily create new file with this oneliner:

     $ touch _posts/`date +%Y-%m-%d`-my-cool-post.markdown
    
  2. To have mandatory YAML header like this:

     ---
     layout: post
     title: The Cool Title
     description: Short description of the post
     author:
       name: Your Name
       link: https://github.com/nickname
     ---
    

    The layout: property is constant, but others you must change. The link: property could be any valid URL which describes your identity better.

  3. If your post is quite long, it will be great if you will hide second part of it on the index page. To do so you should wrap it using <!-- full start --> and <!-- full end -->. For example:

     Bla bla bla...
    
     <!-- full start -->
    
     Long body.....
     .....
     .....
    
     <!-- full end -->
    

    In this case the generator will be able to cut this section and hide on index page.

For those who aren't familiar with ruby ecosystem, steps to setup local jekyll site:

  1. Install ruby

     $ sudo apt-get install -y ruby rubygems
    
  2. Install jekyll and rdiscount

     $ sudo gem install rdiscount jekyll
    
  3. Fork this repository and clone your fork locally

     $ git clone git@github.com:YOURNAME/altoros.github.com.git
    
  4. Write the post and verify it by spawning local server

     $ jekyll --server
    
  5. Create a pull request

About

Collective blog written by developers from Altoros

http://altoros.github.com


Languages

Language:CSS 85.4%Language:JavaScript 7.6%Language:Ruby 7.0%