refactoring blog controller meta tag logic