How to display site title with post title?

function prepend_site_name($title) {
  return get_bloginfo('name').' - '.$title;
}
add_filter('the_title','prepend_site_name');

Like that?

tech