Skip to content

sw-code/sw-code.github.io

Repository files navigation

SWCode Blog

News from our daily dev life

Getting Started

  • Clone it: git clone https://github.com/sw-code/sw-code.github.io
  • Install the requried gems (GitHub Pages, Bourbon and Jekyll, Jemoji): bundle install
  • Run the jekyll server: bundle exec jekyll serve

You should have a server up and running locally at http://localhost:4000.

Configuration

The main settings happen in side of the _config.yml file:

Site

Main settings for the site

  • title: name of your site

  • description: description of your site

  • logo: small logo for the site (300x * 300x)

  • cover: large background image on the index page

  • name: name site owner

  • email: mail address of the site owner

  • author: author name

  • author_image: small image of author (300x * 300px)

  • disqus: add a disqus forum for your post

Social

The template allows to add all major social platforms to your site. Fill the the form for each platform. If you leave the share_* entries empty, the sharing buttons below a post are not shown. If you leave the url and desc empty the icons are not shown on the index page, but the share icons on the article pages remains untouched (Thanks to Phil)

  • icon: name of social platform (must match a name of font-awsome icon set )
  • url: url of your account
  • desc: slogan of the platform
  • share_url: share url
  • share_title: first part of url for the title
  • share_link: second part of the share url for the link to the post

The Liquid template engine will magical combine the different parts to a share url.

http://twitter.com/share?text=post_title&url=post_url

See _config.yml for more examples.