This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Omphaloskepsis/home.php

67 lines
1.5 KiB
PHP
Raw Normal View History

2018-03-21 18:19:20 +00:00
<?php
/**
2021-01-09 11:13:06 +00:00
* The blogroll template file.
*
* @package WordPress
* @subpackage Omphaloskepsis
* @since Omphaloskepsis 1.0
*/
2018-03-21 18:19:20 +00:00
?>
<?php get_header(); ?>
<main id="list-page" class="col-10 col-m-12" role="main">
<header>
2021-01-09 11:13:06 +00:00
<h1>Blog.</h1>
<h2><strong>All</strong> / <a href="/category/thoughts">Thoughts</a> / <a href="/category/reports">Reports</a> / <a href="/category/reviews">Reviews</a> / <a href="/category/projects">Projects</a></h2>
<?php
echo get_the_posts_pagination(
array(
'screen_reader_text' => ' ',
'mid_size' => 20,
'prev_text' => '',
'next_text' => '',
)
);
?>
2018-03-21 18:19:20 +00:00
</header>
<section id="grid" class="row">
2021-01-09 11:13:06 +00:00
<?php
if ( have_posts() ) :
// Start the loop.
while ( have_posts() ) :
the_post();
/*
* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'template-parts/content', get_post_format() );
// End the loop.
2018-03-21 18:19:20 +00:00
endwhile;
2021-01-09 11:13:06 +00:00
// If no content, include the "No posts found" template.
else :
get_template_part( 'template-parts/content', 'none' );
endif;
?>
2018-03-21 18:19:20 +00:00
</section><!-- .site-main -->
<footer>
2021-01-09 11:13:06 +00:00
<?php
echo get_the_posts_pagination(
array(
'screen_reader_text' => ' ',
'mid_size' => 20,
'prev_text' => '',
'next_text' => '',
)
);
?>
2018-03-21 18:19:20 +00:00
</footer>
</main><!-- .content-area -->
2021-01-09 11:13:06 +00:00
<?php // get_sidebar(); ?>
2018-03-21 18:19:20 +00:00
<?php get_footer(); ?>