<?php 
    $cat = get_the_category();
    $cat = $cat[0];
?>
        <div class="col-12 col-xl-6 float-left">
                <div class="article cell cell--main">
                        <a class="article__frame" href="<?php echo esc_url( get_permalink() ); ?>">
                                <img loading="lazy" class="d-block" src="<?php echo get_the_post_thumbnail_url(); ?>" alt="<?php the_title(); ?>" />
                        </a>
                        <div class="article__body">
                                <a class="article__title article__title--lg" href="<?php echo esc_url( get_permalink() ); ?>">
                                        <?php the_title(); ?>
                                </a>
                        </div>
                </div>
        </div>