summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'themes/twentysixteen/index.php')
-rw-r--r--themes/twentysixteen/index.php21
1 files changed, 12 insertions, 9 deletions
diff --git a/themes/twentysixteen/index.php b/themes/twentysixteen/index.php
index 3f621abe..f6ec56c1 100644
--- a/themes/twentysixteen/index.php
+++ b/themes/twentysixteen/index.php
@@ -7,7 +7,7 @@
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
*
- * @link https://codex.wordpress.org/Template_Hierarchy
+ * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package WordPress
* @subpackage Twenty_Sixteen
@@ -29,7 +29,8 @@ get_header(); ?>
<?php
// Start the loop.
- while ( have_posts() ) : the_post();
+ while ( have_posts() ) :
+ the_post();
/*
* Include the Post-Format-specific template for the content.
@@ -38,17 +39,19 @@ get_header(); ?>
*/
get_template_part( 'template-parts/content', get_post_format() );
- // End the loop.
+ // End the loop.
endwhile;
// Previous/next page navigation.
- the_posts_pagination( array(
- 'prev_text' => __( 'Previous page', 'twentysixteen' ),
- 'next_text' => __( 'Next page', 'twentysixteen' ),
- 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>',
- ) );
+ the_posts_pagination(
+ array(
+ 'prev_text' => __( 'Previous page', 'twentysixteen' ),
+ 'next_text' => __( 'Next page', 'twentysixteen' ),
+ 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>',
+ )
+ );
- // If no content, include the "No posts found" template.
+ // If no content, include the "No posts found" template.
else :
get_template_part( 'template-parts/content', 'none' );