<div class=" card post-card ">
	<a href="<?php the_permalink(); ?>">
		<div class="card-image-parent">
			<div class="card-image" style="background-image: url(<?php echo 
		get_the_post_thumbnail_url(); ?>)">
	</div>
		</div>
	</a>

	<div class="card-inner">

		<span class="date"><?php echo get_the_date(); ?></span>

		<a href="<?php the_permalink(); ?>">
			<h3 class="card-title"><?php the_title(); ?></h3>
		</a>		

	</div>

	<div class="card-footer">
		<?php get_template_part('partials/template', 'post-meta'); ?>

		<?php $download = get_field('download');

		if (isset($download)): ?>
			<a class="download-button" target="_none" href="<?php echo $download['url']; ?>">
			    <?php echo file_get_contents(get_template_directory() . '/assets/img/download.svg'); ?>
			</a>
		<?php endif; ?>
	</div>

</div>
