<?php
/**
 * Title: Blogs Page
 * Slug: baty/blogs-page
 * Categories: featured
 */
?>
<!-- wp:group {"tagName":"main","metadata":{"name":"blogs","categories":["featured"],"patternName":"baty/blogs-page"},"style":{"spacing":{"margin":{"top":"0rem"}}},"layout":{"type":"constrained"}} -->
<main
    class="wp-block-group" style="margin-top:0rem">
    <!-- wp:group {"tagName":"main","className":"blog-banner","style":{"spacing":{"blockGap":"0","margin":{"top":"0","bottom":"0"},"padding":{"top":"0","bottom":"0"}}},"layout":{"type":"default"}} -->
    <main
        class="wp-block-group blog-banner" style="margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0">
        <!-- wp:group {"style":{"spacing":{"margin":{"top":"0","bottom":"0"},"padding":{"right":"0","left":"0","top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
        <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:cover {"useFeaturedImage":true,"dimRatio":0,"customOverlayColor":"#FFF","isUserOverlayColor":false,"minHeight":420,"isDark":false,"layout":{"type":"constrained"}} -->
            <div class="wp-block-cover is-light" style="min-height:420px">
                <span aria-hidden="true" class="wp-block-cover__background has-background-dim-0 has-background-dim" style="background-color:#FFF"></span>
                <div
                    class="wp-block-cover__inner-container">
                    <!-- wp:heading {"style":{"elements":{"link":{"color":{"text":"var:preset|color|accent-1"}}},"typography":{"textAlign":"center"}},"textColor":"accent-1","fontSize":"large"} -->
                    <h2
                        class="wp-block-heading has-text-align-center has-accent-1-color has-text-color has-link-color has-large-font-size"><?php echo esc_html__('Blogs', 'baty'); ?>
                    </h2>
                    <!-- /wp:heading -->

                <?php if (class_exists('WooCommerce')): ?>
                        <!-- wp:woocommerce/breadcrumbs /-->
                    <?php endif; ?>

                </div>
            </div>
            <!-- /wp:cover -->
        </div>
        <!-- /wp:group -->
    </main>
    <!-- /wp:group -->

    <!-- wp:group {"tagName":"main","className":"main-blog-page","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50","right":"var:preset|spacing|50"}}},"layout":{"type":"default"}} -->
    <main
        class="wp-block-group main-blog-page" style="padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)">
        <!-- wp:group {"layout":{"type":"constrained"}} -->
        <div
            class="wp-block-group">
            <!-- wp:columns -->
            <div
                class="wp-block-columns">
                <!-- wp:column {"width":"33.33%","className":"blogs-side-bar"} -->
                <div
                    class="wp-block-column blogs-side-bar" style="flex-basis:33.33%">
                    <!-- wp:group {"layout":{"type":"constrained"}} -->
                    <div class="wp-block-group">
                        <!-- wp:search {"label":"Search","showLabel":false,"buttonText":"Search","buttonPosition":"button-inside","style":{"border":{"width":"0px","style":"none","radius":{"topLeft":"0px","topRight":"0px","bottomLeft":"0px","bottomRight":"0px"}}}} /-->

                        <!-- wp:group {"layout":{"type":"constrained"}} -->
                            <div
                            class="wp-block-group"> <!-- wp:heading -->
                            <h2
                                class="wp-block-heading"><?php echo esc_html__('Recent Posts', 'baty'); ?>
                            </h2>
                            <!-- /wp:heading -->

                            <!-- wp:query {"queryId":10,"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"taxQuery":null,"parents":[],"format":[]}} -->
                            <div class="wp-block-query">
                                <!-- wp:post-template -->
                                <!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} -->
                                    <div
                                    class="wp-block-group"> <!-- wp:group {"layout":{"type":"constrained"}} -->
                                    <div
                                        class="wp-block-group"><!-- wp:post-featured-image {"aspectRatio":"1","width":"93px","height":"93px"} /-->
                                    </div>
                                    <!-- /wp:group -->

                                    <!-- wp:group {"layout":{"type":"constrained"}} -->
                                    <div class="wp-block-group"><!-- wp:post-date {"metadata":{"bindings":{"datetime":{"source":"core/post-data","args":{"field":"date"}}}}} /-->

                                        <!-- wp:post-title {"style":{"typography":{"fontSize":"20px"}}} /-->
                                    </div>
                                    <!-- /wp:group -->
                                </div>
                                <!-- /wp:group -->
                                <!-- /wp:post-template -->

                                <!-- wp:query-no-results -->
                                <!-- wp:paragraph {"placeholder":"Add text or blocks that will display when a query returns no results."} --><p>
                            </p>
                                <!-- /wp:paragraph -->
                                <!-- /wp:query-no-results -->
                            </div>
                            <!-- /wp:query -->
                        </div>
                        <!-- /wp:group -->

                        <!-- wp:group {"className":"categories","style":{"spacing":{"margin":{"top":"48px"}}},"layout":{"type":"constrained"}} -->
                        <div
                            class="wp-block-group categories" style="margin-top:48px">
                            <!-- wp:heading -->
                            <h2
                                class="wp-block-heading"><?php echo esc_html__('Categories', 'baty'); ?>
                            </h2>
                            <!-- /wp:heading -->

                            <!-- wp:categories /-->
                        </div>
                        <!-- /wp:group -->

                        <!-- wp:group {"className":"tags","style":{"spacing":{"padding":{"top":"48px"}}},"layout":{"type":"constrained"}} -->
                        <div
                            class="wp-block-group tags" style="padding-top:48px">
                            <!-- wp:heading -->
                            <h2
                                class="wp-block-heading"><?php echo esc_html__('Tags', 'baty'); ?>
                            </h2>
                            <!-- /wp:heading -->

                            <!-- wp:categories {"taxonomy":"post_tag"} /-->
                        </div>
                        <!-- /wp:group -->
                    </div>
                    <!-- /wp:group -->
                </div>
                <!-- /wp:column -->

                <!-- wp:column {"width":"66.66%","className":"main-blogs"} -->
                <div
                    class="wp-block-column main-blogs" style="flex-basis:66.66%">
                    <!-- wp:query {"queryId":20,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false},"metadata":{"categories":["posts"],"patternName":"core/query-grid-posts","name":"Grid"}} -->
                    <div class="wp-block-query">
                        <!-- wp:post-template {"layout":{"type":"grid","columnCount":2}} -->
                        <!-- wp:group {"layout":{"type":"constrained"}} --><div class="wp-block-group"><!-- wp:post-featured-image {"height":"256px"} /--></div>
                        <!-- /wp:group -->

                        <!-- wp:group {"style":{"spacing":{"padding":{"top":"30px","right":"30px","bottom":"30px","left":"30px"}}},"backgroundColor":"accent-3","layout":{"inherit":false}} -->
                        <div class="wp-block-group has-accent-3-background-color has-background" style="padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px"><!-- wp:post-date {"metadata":{"bindings":{"datetime":{"source":"core/post-data","args":{"field":"date"}}}},"style":{"elements":{"link":{"color":{"text":"var:preset|color|accent-5"}}}},"textColor":"accent-5"} /-->

                            <!-- wp:post-title {"isLink":true,"style":{"typography":{"fontSize":"24px"}}} /-->

                            <!-- wp:post-excerpt {"moreText":"Read More","excerptLength":21,"style":{"typography":{"fontSize":"16px"}}} /-->
                        </div>
                        <!-- /wp:group -->
                    <!-- /wp:post-template -->

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

                        <!-- wp:query-pagination-numbers /-->

                        <!-- wp:query-pagination-next /-->
                        <!-- /wp:query-pagination -->
                    </div>
                    <!-- /wp:query -->
                </div>
                <!-- /wp:column -->
            </div>
            <!-- /wp:columns -->
        </div>
        <!-- /wp:group -->
    </main>
    <!-- /wp:group -->
</main>
<!-- /wp:group -->

