use templateUrl rather than inline template for blog post directive
use ng-repeat and ng-switch directive sto llop oover parser output in template
code cleanup:  throw out unused functions and variables