$(function(){
    $(".blogpost a").attr('target', 'blank');
    $(".blogpost a.toself").attr('target', '_self');
});
