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'); ?> <?php do_action('tailpress_content_end'); ?>

View File

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

View File

@ -38,5 +38,4 @@
<?php do_action('tailpress_content_start'); ?> <?php do_action('tailpress_content_start'); ?>
<?php get_template_part('template-parts/utils/scroll-top'); ?> <?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 get_header(); ?>
<main id="content" class="site-content flex-grow">
<?php if (have_posts()) : ?> <?php if (have_posts()) : ?>
<?php <?php
while (have_posts()) : while (have_posts()) :
the_post(); the_post();
the_content(); the_content();
?> ?>
<?php endwhile; ?> <?php endwhile; ?>
<?php endif; ?> <?php endif; ?>
</div>
<?php get_footer(); <?php get_footer(); ?>
</main>