Only add has-pages class on header in index if the config has pages