FEATURE Refactor structure of footer, header, front-page, and page templates to move the main tag into templates files

This commit is contained in:
Antoine M 2026-01-30 10:16:31 +01:00
parent 3d140c0475
commit 0966e97b6c
4 changed files with 19 additions and 20 deletions

View File

@ -1,5 +1,3 @@
</main>
<?php do_action('tailpress_content_end'); ?>

View File

@ -1,9 +1,9 @@
<?php get_header(); ?>
<main id="content" class="site-content flex-grow">
<?php if ( have_posts() ) : ?>
<?php if (have_posts()) : ?>
<?php
while ( have_posts() ) :
while (have_posts()) :
the_post();
the_content();
?>
@ -13,5 +13,5 @@
<?php endif; ?>
<?php
get_footer();
<?php get_footer(); ?>
</main>

View File

@ -39,4 +39,3 @@
<?php do_action('tailpress_content_start'); ?>
<?php get_template_part('template-parts/utils/scroll-top'); ?>
<main id="content" class="site-content flex-grow">

View File

@ -1,16 +1,18 @@
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<?php
<main id="content" class="site-content flex-grow">
<?php if (have_posts()) : ?>
<?php
while (have_posts()) :
the_post();
the_content();
?>
?>
<?php endwhile; ?>
<?php endwhile; ?>
<?php endif; ?>
<?php endif; ?>
</div>
<?php get_footer();
<?php get_footer(); ?>
</main>