modularize post templates a little more