Copied across default theme from anchor-cms branch 0.9