<?php

// Stop Direct Access
if ( !defined( 'ABSPATH' ) ) {
    exit;
}
/**
 * Single CV Template - Block Theme Compatible
 */

wp_head(); ?>

<?php
$header_template = get_block_template(get_stylesheet() . '//header', 'wp_template_part');
if ($header_template && $header_template->content) {
    echo do_blocks($header_template->content);
}
?>
<main class="wp-block-group cv-main">
    <div class="cv-container">
        <?php while ( have_posts() ) : the_post(); ?>            
            <article class="cv-post">
                <div class="cv-content">
                    <?php the_content(); ?>
                </div>
            </article>
        <?php endwhile; ?>
    </div>
</main>
<?php

wp_footer();