<?php
/**
 * Title: Posts List
 * Slug: monowp/posts-list
 * Inserter: false
 */
?>

<!-- wp:query {"queryId":12,"query":{"perPage":5,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false},"enhancedPagination":true} -->
<div class="wp-block-query">

<!-- wp:query-pagination {"paginationArrow":"arrow","showLabel":false,"align":"center","layout":{"type":"flex","justifyContent":"space-between","flexWrap":"nowrap"}} -->
<!-- wp:query-pagination-previous /-->
<!-- wp:query-pagination-numbers {"midSize":1} /-->
<!-- wp:query-pagination-next /-->
<!-- /wp:query-pagination -->

<!-- wp:post-template {"style":{"spacing":{"blockGap":"var:preset|spacing|70"}}} -->
<!-- wp:post-featured-image {"aspectRatio":"auto","height":"250px","align":"wide","style":{"spacing":{"margin":{"top":"0","bottom":"0","left":"0","right":"0"}},"color":{"duotone":"var:preset|duotone|grayscale"}}} /-->

<!-- wp:post-title {"style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast"}}},"spacing":{"padding":{"top":"0","bottom":"0"},"margin":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|20","left":"0","right":"0"}},"typography":{"fontStyle":"normal","fontWeight":"600"}},"textColor":"contrast","fontSize":"x-large"} /-->

<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20","padding":{"top":"0","bottom":"0","left":"0","right":"0"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"flex","orientation":"vertical","verticalAlignment":"center"}} -->
<div class="wp-block-group" style="margin-top:0;margin-bottom:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0">
<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20","margin":{"top":"0","bottom":"0"},"padding":{"right":"0","left":"0","top":"0","bottom":"0"}}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group" style="margin-top:0;margin-bottom:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0">
<!-- wp:paragraph -->
<p><img class="post-date-icon" width="24" height="24" src="<?php echo esc_url( get_template_directory_uri() . '/assets/icons/post-date.webp' ); ?>" alt="<?php echo esc_html_x( 'Post date', 'Post date icon', 'monowp' ); ?>" title="<?php echo esc_html_x( 'Post date', 'Post date icon', 'monowp' ); ?>"></p>
<!-- /wp:paragraph -->
<!-- wp:post-date /-->
</div>
<!-- /wp:group -->

<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20","padding":{"top":"0","bottom":"0","left":"0","right":"0"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group" style="margin-top:0;margin-bottom:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0">
<!-- wp:paragraph -->
<p><img class="author-icon" width="24"  height="24"  src="<?php echo esc_url( get_template_directory_uri() . '/assets/icons/author.webp' ); ?>" alt="<?php echo esc_html_x( 'Author', 'Author icon', 'monowp' ); ?>" title="<?php echo esc_html_x( 'Author', 'Author icon', 'monowp' ); ?>"></p>
<!-- /wp:paragraph -->
<!-- wp:post-author-name {"textAlign":"left","isLink":true} /--></div>
<!-- /wp:group -->

<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20","padding":{"top":"0","bottom":"0","left":"0","right":"0"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"flex","flexWrap":"wrap"}} -->
<div class="wp-block-group" style="margin-top:0;margin-bottom:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0">
<!-- wp:paragraph -->
<p><img class="category-icon" width="24"  height="24"  src="<?php echo esc_url( get_template_directory_uri() . '/assets/icons/category.webp' ); ?>" alt="<?php echo esc_html_x( 'Categories', 'Category icon', 'monowp' ); ?>" title="<?php echo esc_html_x( 'Categories', 'Category icon', 'monowp' ); ?>"></p>
<!-- /wp:paragraph -->
<!-- wp:post-terms {"term":"category"} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->

<!-- wp:post-excerpt {"moreText":"<?php echo esc_html_x( 'READ POST', 'Link to article', 'monowp' ); ?> ➔","style":{"spacing":{"margin":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}}} /-->


<!-- wp:separator {"opacity":"css","style":{"spacing":{"margin":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}}} -->
<hr class="wp-block-separator has-css-opacity" style="margin-top:var(--wp--preset--spacing--40);margin-bottom:var(--wp--preset--spacing--40)"/>
<!-- /wp:separator -->
<!-- /wp:post-template -->

<!-- wp:query-pagination {"paginationArrow":"arrow","showLabel":false,"align":"center","layout":{"type":"flex","justifyContent":"space-between","flexWrap":"nowrap"}} -->
<!-- wp:query-pagination-previous /-->

<!-- wp:query-pagination-numbers {"midSize":1} /-->

<!-- wp:query-pagination-next /-->
<!-- /wp:query-pagination --></div>
<!-- /wp:query -->
