First Official Post

##Customizing Octopress Default Theme

Change Default Theme CSS

In your sass/custom/_colors.scss file define the values for the items below. I’m using the following colors for my theme, but feel free to change them to whatever you want them to be.

#Header Colors

Header Background and Subtitle Color
1
2
$header-bg: #1a1a1a;
$subtitle-color: #c4c4c4 !default;

#Text Colors

Text Regular and Text Light Colors
1
2
$text-color: #fafafa !default;
$text-color-light: #919191 !default;
Link State Colors
1
2
3
$link-color: #FFFFFA !default;
$link-color-hover: #c4c4c4 !default;
$link-color-visited: #a8a8a8 !default;
Nav Foreground and Background Color
1
2
$nav-bg-front: background-color(none) !default;
$nav-bg-back: background-color(none) !default;

Cut Out Google Fonts

Reduce the number of requests that you make to get your site to load faster. Follow the directions on the big dinosaur blog.

Removing Default Javascript

In the /source/_include/head.html file, remove any unwanted javascript. I decided to do this because having dom manipulation or feature detection javascript libraries were not critical to consuming the information on my blog.

Adding a Custom Favicon

Navigate to source/_include/custom/head.html and insert these lines:

Adding Favicon in Ico and Png Format
1
2
<link href="{{ root_url }}/favicon.ico" rel="shortcut icon" type='image/x-icon'>
<link href="{{ root_url }}/favicon.png" rel="shortcut icon" type='image/x-icon'>

Make sure to include the favicon.ico and favicon.png to source/_includes directory for this to work. Before including the lines below, be sure to open the ico file in a couple of different browsers to check if the ico is loaded properly and there are no visual defects on your ico file.

I used a online tool to convert my png file to an ico over at rw-designer.com. The default settings should work ok.

On another note you may also want to include additional icons for Apple devices.

Settings in _config.yml

Some Changes to _config.yml
1
2
3
4
5
6
#change the date format for posts to mm/dd/yyyy
date: "%m/%d/%Y"

#remove the recent post sidebar on the right
#recent posts will now appear on the bottom
sidebar: collapse

Minifying Content

Install jekyll-press to minify your html, css and javascript. Detailed instructions are on the github page.

Use Monokai Syntax Highlighting Scheme

Go to https://github.com/sanukcode/Monokai-Sublime-Text-Octopress and follow the instructions.