moved the templating stuff to struct blogpost