<?php
/**
 * Template part for displaying posts
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package mohali
 */

?>

<article id="post-<?php the_ID(); ?>" <?php post_class('row blog-style2'); ?>>

<div class="post-details col-md-6 col-lg-8">

	<?php the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); ?>
	<div class="entry-meta">
			<?php
			mohali_posted_on();
			mohali_posted_by();
			?>
	</div><!-- .entry-meta -->

	<div class="entry-excerpt">
		<?php the_excerpt(); ?>
	</div>
	
</div>

<div class="thumbnail col-md-6 col-lg-4">
	<a href="<?php the_permalink(); ?>"><?php 
	if (has_post_thumbnail()):
		the_post_thumbnail( 'mohali-thumbnail-4x3' );
	endif;	?>
	</a>
	
</div>

</article><!-- #post-<?php the_ID(); ?> -->