?>
    <div class="hkb-category">
        <div class="hkb-category__header">
            <h2 class="hkb-category__title">
                <?php 
    _e('Uncategorized', 'ht-knowledge-base');
    ?>
            </h2>
        </div>
        <ul class="hkb-article-list">
            <?php 
    foreach ($uncat_posts as $post) {
        ?>
                            
                    <li class="hkb-article-list__<?php 
        hkb_post_format_class($post->ID);
        ?>
">
                        <a href="<?php 
        echo get_permalink($post->ID);
        ?>
"><?php 
        echo get_the_title($post->ID);
        ?>
</a>
                    </li>
            <?php 
    }
    ?>
        </ul>
    </div>
if (!empty($related_articles) && $related_articles->have_posts()) {
    ?>
<!-- .hkb-article__related -->     
    <section class="hkb-article-related" class="clearfix">
        <h3 class="hkb-article-related__title"><?php 
    _e('Related Articles', 'ht-knowledge-base');
    ?>
</h3>
        <ul class="hkb-article-list">
        <?php 
    while ($related_articles->have_posts()) {
        $related_articles->the_post();
        ?>
                
            <li class="hkb-article-list__<?php 
        hkb_post_format_class();
        ?>
">
                <a href="<?php 
        the_permalink();
        ?>
" title="<?php 
        echo esc_attr(sprintf(the_title_attribute('echo=0')));
        ?>
"><?php 
        the_title();
        ?>
</a>
                <?php 
        hkb_get_template_part('hkb-article-meta', 'related');
        ?>