Fixes #3550

Fixes bug (missing `link` value in the content array) and moves all preprocess into theme template to keep logic in one place.

![screen shot 2014-11-26 at 4 32 44 pm](https://cloud.githubusercontent.com/assets/1236811/5209202/e0a9807e-7589-11e4-936e-244b3c2e1635.png)