<?php

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

?>
<article id="post-<?php the_ID(); ?>" <?php post_class('blog-one__item col-md-12'); ?>>
	<div class="blog-card-two  wow fadeInUp" data-wow-duration='1500ms' data-wow-delay='100ms'>
		<?php if (has_post_thumbnail()) : ?>
			<div class="blog-card-two__image">
				<?php the_post_thumbnail();  ?>
				<?php the_post_thumbnail();  ?>
				<a href="<?php the_permalink(); ?>" class="blog-card-two__image__link"></a>
				<div class="blog-card__date"><?php echo get_the_date(); ?></div>
			</div>
		<?php endif; ?>

		<div class="blog-card-two__content">
			<ul class="list-unstyled blog-card-two__meta">
				<li><?php ostech_posted_by(); ?></li>
				<?php if (!empty(get_comments_number())) : ?>
					<li><?php ostech_comment_count(); ?></li>
				<?php endif; ?>
			</ul>
			<h3 class="blog-card-two__title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
			<?php $ostech_excerpt_count = apply_filters('ostech_excerpt_count', 41); ?>
			<p class="blog-card-two__text"><?php ostech_excerpt($ostech_excerpt_count); ?></p>
			<a href="<?php the_permalink(); ?>" class="blog-card-two__link"><i class="icon-arrow-left"></i></a>
		</div>
	</div>
</article>