<article <?php post_class(); ?>>
  <header>
    <?php
    if ( ! is_archive() ) {
      medm_article_category_box();
    }

    medm_article_author_box();
    ?>
  </header>

  <div class="inner-entry">
    <a href="<?php the_permalink(); ?>" class="inner-wrap"></a>

    <h2 class="title">
      <?php the_title(); ?>
    </h2>

    <div class="featured-image">
      <?php the_post_thumbnail( 'large' ); ?>
    </div>

    <div class="summary">
      <?php the_excerpt(); ?>
    </div>
  </div>

  <a href="<?php the_permalink(); ?>" class="read-more gray">
    Read more...
  </a>
</article>

<article <?php post_class(); ?>>
  <header>
    <?php
    if ( ! is_archive() ) {
      medm_article_category_box();
    }

    medm_article_author_box();
    ?>
  </header>

  <div class="inner-entry">
    <a href="<?php the_permalink(); ?>" class="inner-wrap"></a>

    <h2 class="title">
      <?php the_title(); ?>
    </h2>

    <?php if ( has_post_thumbnail() ) : ?>
      <div class="featured-image">
        <?php the_post_thumbnail( 'large' ); ?>
      </div>
    <?php endif; ?>

    <div class="summary">
      <?php the_excerpt(); ?>
    </div>
  </div>

  <a href="<?php the_permalink(); ?>" class="read-more gray">
    Read more...
  </a>
</article>

Refactor logic when showing post featured image
Refactor logic when showing post featured image
