This commit is contained in:
2023-01-26 21:14:40 +00:00
parent 7bd647a7a0
commit a293155787
28 changed files with 666 additions and 501 deletions

View File

@@ -1,9 +1,11 @@
<?php get_header(); ?>
<main class="page">
<section class="page__logo">
<?php get_template_part('partials/logo') ?>
<?php get_template_part("partials/logo"); ?>
</section>
<?php if (have_posts()): while (have_posts()) : the_post(); ?>
<?php if (have_posts()):
while (have_posts()):
the_post(); ?>
<section class="page__content">
<h1 class="title">
<?php the_title(); ?>
@@ -12,19 +14,23 @@
<?php the_content(); ?>
</div>
</section>
<?php endwhile; ?>
<?php else: ?>
<?php
endwhile; ?>
<?php
else:
?>
<section class="page__content">
<h1 class="title">Sorry, there is no article to display</h1>
<a class="link" href="<?php echo get_site_url() ?>/">Go back home</a>
<a class="link" href="<?php echo get_site_url(); ?>/">Go back home</a>
</section>
<?php endif; ?>
<?php
endif; ?>
<section class="page__banner">
<?php get_template_part('partials/banner') ?>
<?php get_template_part("partials/banner"); ?>
</section>
<section class="page__footer">
<?php get_template_part('partials/footer') ?>
<?php get_template_part("partials/footer"); ?>
</section>
</main>
<?php get_template_part('partials/navigation') ?>
<?php get_footer() ?>
<?php get_template_part("partials/navigation"); ?>
<?php get_footer(); ?>