<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<a href="https://wordpress.stackexchange.com/questions/60224/<?php the_permalink(); ?>"><?php the_title(); ?></a>
<?php the_excerpt() ?>
<?php endwhile; else: ?>
<p>Nothing to see here.</p>
<?php endif; ?>
This is the right syntax to show title and the excerpt on home page.