<?php if ( post_password_required() || ( ! have_comments() && ! comments_open() && ! pings_open() ) ) {
    return;
} ?>

<section id="comments" class="comments">

    <?php if ( have_comments() ) : ?>

        <h2 class="comments__title"><?php comments_number() ?></h2>

        <?php Hybrid\View\display( 'nav/pagination', 'comments' ) ?>

        <ol class="comments__list">

            <?php wp_list_comments( [
                'callback' => function( $comment, $args, $depth ) {
                    Hybrid\View\display( 'comment', Hybrid\Comment\hierarchy(), compact( 'comment', 'args', 'depth' ) );
                }
            ]) ?>

        </ol>

    <?php endif ?>

    <?php comment_form() ?>

</section>
