<?php
/**
 * Template part for displaying posts
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package Memory Blog
 */
?>

<article id="post-<?php the_ID(); ?>">
	<div class="blog-post-item">
        <div class="featured-image" style="background-image: url('<?php the_post_thumbnail_url( 'full' ); ?>');">
            <a href="<?php the_permalink();?>" class="post-thumbnail-link"></a>
        </div><!-- .featured-image -->

        <div class="entry-container">
            <?php memory_blog_entry_meta(); ?>
            
            <header class="entry-header">
                <h2 class="entry-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h2>
            </header>

            <?php memory_blog_posted_on(); ?>

            <div class="entry-content">
                <?php the_excerpt(); ?>
            </div><!-- .entry-content -->
        </div><!-- .entry-container -->
    </div><!-- .blog-post-item -->
</article><!-- #post-## -->