Different titles for static, posts, and every xy page

Ok solved.

<?php if ( is_front_page() && !is_home() ) :?> 
    <h1><a href="https://wordpress.stackexchange.com/questions/175971/<?php echo esc_url( home_url("https://wordpress.stackexchange.com/" ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<?php elseif ( is_home() && get_option('page_for_posts') ): ?>
    <h1><?php echo apply_filters('the_title',get_page( get_option('page_for_posts') )->post_title); ?></h1>
 <?php else : ?>
    <h1><a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(''); ?></a></h1>
<?php endif; ?>

with a little help from here.