<?php
/**
 * Blog / archive content card.
 *
 * @package ttsunsolar
 */
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'blog-card' ); ?>>
	<?php if ( has_post_thumbnail() ) : ?>
		<a class="blog-card__image" href="<?php the_permalink(); ?>">
			<?php the_post_thumbnail( 'medium_large' ); ?>
		</a>
	<?php endif; ?>
	<div class="blog-card__body">
		<h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
		<div class="entry-meta">
			<span><?php echo esc_html( get_the_date() ); ?></span>
		</div>
		<div class="entry-summary">
			<?php the_excerpt(); ?>
		</div>
		<a class="text-link" href="<?php the_permalink(); ?>"><?php esc_html_e( 'Read more', 'ttsunsolar' ); ?></a>
	</div>
</article>
