';
while ( have_posts() ) {
the_post();
$counter ++;
$pid = get_the_ID();
if ( ! empty( $posts_to_skip ) && in_array( $pid, $posts_to_skip, true ) ) {
$counter ++;
continue;
}
if ( $alternative_blog_layout === 'blog_alternative_layout2' ) {
get_template_part( 'template-parts/content', 'alternative-2' );
} elseif ( ( $alternative_blog_layout === 'blog_alternative_layout' ) && ( $counter % 2 === 0 ) ) {
get_template_part( 'template-parts/content', 'alternative' );
} else {
get_template_part( 'template-parts/content' );
}
}
echo '
';
$hestia_pagination_type = get_theme_mod( 'hestia_pagination_type', 'number' );
if ( $hestia_pagination_type === 'number' ) {
do_action( 'hestia_before_pagination' );
the_posts_pagination();
do_action( 'hestia_after_pagination' );
}
} else {
get_template_part( 'template-parts/content', 'none' );
}
?>