simplification on single

This commit is contained in:
Antoine M 2024-02-13 19:15:34 +01:00
parent 9095d26538
commit a8326107a1

View File

@ -1,28 +1,21 @@
<?php get_header(); ?>
<div class="container my-8 mx-auto">
<div class="container my-8 mx-auto">
<?php if ( have_posts() ) : ?>
<?php if (have_posts()) : ?>
<?php
while ( have_posts() ) :
while (have_posts()) :
the_post();
?>
<?php get_template_part( 'template-parts/content', 'single' ); ?>
<?php
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
<?php get_template_part('template-parts/content', 'single'); ?>
<?php endwhile; ?>
<?php endif; ?>
</div>
</div>
<?php
get_footer();