<?php
/**
 * Title: Blog Preview
 * Slug: nutrawell/blog-preview
 * Categories: nutrawell, featured
 * Description: Latest blog posts section with query loop.
 */
?>
<!-- wp:group {"align":"full","className":"blog py"} -->
<div class="wp-block-group alignfull blog py">
	<!-- wp:group {"className":"container"} -->
	<div class="wp-block-group container">
		<!-- wp:group {"className":"blog-wrapper comman-wrapper","layout":{"type":"constrained"}} -->
		<div class="wp-block-group blog-wrapper comman-wrapper">
			<!-- wp:group {"className":"title","layout":{"type":"constrained"}} -->
			<div class="wp-block-group title">
				<!-- wp:paragraph {"className":"sub-title"} -->
				<p class="sub-title"><?php echo esc_html__( 'Latest Articles', 'nutrawell' ); ?></p>
				<!-- /wp:paragraph -->
				<!-- wp:heading {"level":2} -->
				<h2><?php echo esc_html__( 'Blog Preview', 'nutrawell' ); ?></h2>
				<!-- /wp:heading -->
			</div>
			<!-- /wp:group -->
			<!-- wp:query {"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false},"layout":{"type":"default"}} -->
			<div class="wp-block-query">
				<!-- wp:post-template {"layout":{"type":"grid","columnCount":3},"className":"blog-items","style":{"spacing":{"blockGap":"var:preset|spacing|lg"}}} -->
				<!-- wp:group {"className":"blog-item","layout":{"type":"constrained"}} -->
				<div class="wp-block-group blog-item">
					<!-- wp:group {"className":"blog-img","layout":{"type":"constrained"}} -->
					<div class="wp-block-group blog-img">
						<!-- wp:post-featured-image {"isLink":true} /-->
					</div>
					<!-- /wp:group -->
					<!-- wp:group {"className":"blog-content","layout":{"type":"constrained"}} -->
					<div class="wp-block-group blog-content">
						<!-- wp:group {"className":"blog-tag-timer","layout":{"type":"flex","flexWrap":"wrap","justifyContent":"space-between"}} -->
						<div class="wp-block-group blog-tag-timer">
							<!-- wp:group {"className":"blog-tags","layout":{"type":"constrained"}} -->
							<div class="wp-block-group blog-tags">
								<!-- wp:post-terms {"term":"category","className":"tag"} /-->
							</div>
							<!-- /wp:group -->
						</div>
						<!-- /wp:group -->
						<!-- wp:post-title {"level":3,"isLink":true} /-->
						<!-- wp:post-excerpt /-->
						<!-- wp:group {"className":"blog-user-read","layout":{"type":"flex","flexWrap":"wrap","justifyContent":"space-between","alignItems":"center"}} -->
						<div class="wp-block-group blog-user-read">
							<!-- wp:group {"className":"blog-user","layout":{"type":"flex","flexWrap":"nowrap","alignItems":"center"}} -->
							<div class="wp-block-group blog-user">
								<!-- wp:post-author {"showAvatar":true} /-->
							</div>
							<!-- /wp:group -->
						
						</div>
						<!-- /wp:group -->
					</div>
					<!-- /wp:group -->
				</div>
				<!-- /wp:group -->
				<!-- /wp:post-template -->
			</div>
			<!-- /wp:query -->
			<!-- wp:button {"className":"btn yellow-btn"} -->
			<div class="wp-block-button btn yellow-btn"><a class="wp-block-button__link wp-element-button" href="/blog/"><?php echo esc_html__( 'Read More Articles', 'nutrawell' ); ?></a></div>
			<!-- /wp:button -->
		</div>
		<!-- /wp:group -->
	</div>
	<!-- /wp:group -->
</div>
<!-- /wp:group -->
