ZX-Spectrum/parts/blog.php

25 lines
658 B
PHP
Raw Permalink Normal View History

2023-01-09 23:36:46 +00:00
<main class="bg-lightGrey max-w-screen min-h-screen flex flex-col justify-center items-center">
<section class="wrapper-sm">
<h1 class="text-center">Blog</h1>
<div class="basic-select">
<ul class="h-feed">
<?php while ( have_posts() ) {
the_post();
?>
<li class="h-entry">
<?= the_title(sprintf('<a href="%s" class="u-url">', esc_url(get_permalink())), '</a>') ?>
</li>
<?php } ?>
</ul>
<ul>
<li><?php next_posts_link('< Older') ?></li>
<li><?php previous_posts_link('> Newer') ?></li>
</ul>
</div>
<footer class="pt-size-2 text-center">
&copy; 2023 Lewis Dale
</footer>
</section>
</main>