Index: src/wp-content/themes/twentyseventeen/comments.php
===================================================================
--- src/wp-content/themes/twentyseventeen/comments.php	(revision 39548)
+++ src/wp-content/themes/twentyseventeen/comments.php	(working copy)
@@ -30,24 +30,24 @@
 	if ( have_comments() ) : ?>
 		<h2 class="comments-title">
 			<?php
-				$comments_number = get_comments_number();
-				if ( '1' === $comments_number ) {
-					/* translators: %s: post title */
-					printf( _x( 'One Reply to &ldquo;%s&rdquo;', 'comments title', 'twentyseventeen' ), get_the_title() );
-				} else {
-					printf(
-						/* translators: 1: number of comments, 2: post title */
-						_nx(
-							'%1$s Reply to &ldquo;%2$s&rdquo;',
-							'%1$s Replies to &ldquo;%2$s&rdquo;',
-							$comments_number,
-							'comments title',
-							'twentyseventeen'
-						),
-						number_format_i18n( $comments_number ),
-						get_the_title()
-					);
-				}
+			$comments_number = get_comments_number();
+			if ( '1' === $comments_number ) {
+				/* translators: %s: post title */
+				printf( _x( 'One Reply to &ldquo;%s&rdquo;', 'comments title', 'twentyseventeen' ), get_the_title() );
+			} else {
+				printf(
+					/* translators: 1: number of comments, 2: post title */
+					_nx(
+						'%1$s Reply to &ldquo;%2$s&rdquo;',
+						'%1$s Replies to &ldquo;%2$s&rdquo;',
+						$comments_number,
+						'comments title',
+						'twentyseventeen'
+					),
+					number_format_i18n( $comments_number ),
+					get_the_title()
+				);
+			}
 			?>
 		</h2>
 
Index: src/wp-content/themes/twentyseventeen/functions.php
===================================================================
--- src/wp-content/themes/twentyseventeen/functions.php	(revision 39548)
+++ src/wp-content/themes/twentyseventeen/functions.php	(working copy)
@@ -310,6 +310,7 @@
  *
  * @since Twenty Seventeen 1.0
  *
+ * @param string $link Link to single post/page.
  * @return string 'Continue reading' link prepended with an ellipsis.
  */
 function twentyseventeen_excerpt_more( $link ) {
Index: src/wp-content/themes/twentyseventeen/inc/color-patterns.php
===================================================================
--- src/wp-content/themes/twentyseventeen/inc/color-patterns.php	(revision 39548)
+++ src/wp-content/themes/twentyseventeen/inc/color-patterns.php	(working copy)
@@ -95,7 +95,7 @@
 .colors-custom .site-footer .widget-area a,
 .colors-custom .posts-navigation a,
 .colors-custom .widget_authors a strong {
-	-webkit-box-shadow: inset 0 -1px 0 hsl( ' . $hue . ', ' . $saturation  . ', 6% ); /* base: rgba(15, 15, 15, 1); */
+	-webkit-box-shadow: inset 0 -1px 0 hsl( ' . $hue . ', ' . $saturation . ', 6% ); /* base: rgba(15, 15, 15, 1); */
 	box-shadow: inset 0 -1px 0 hsl( ' . $hue . ', ' . $saturation . ', 6% ); /* base: rgba(15, 15, 15, 1); */
 }
 
@@ -201,7 +201,7 @@
 .colors-custom .widget ul li a:focus,
 .colors-custom .widget ul li a:hover {
 	-webkit-box-shadow: inset 0 0 0 hsl( ' . $hue . ', ' . $saturation . ', 13% ), 0 3px 0 hsl( ' . $hue . ', ' . $saturation . ', 13% );
-	box-shadow: inset 0 0 0 hsl( ' . $hue . ', ' . $saturation. ' , 13% ), 0 3px 0 hsl( ' . $hue . ', ' . $saturation . ', 13% );
+	box-shadow: inset 0 0 0 hsl( ' . $hue . ', ' . $saturation . ' , 13% ), 0 3px 0 hsl( ' . $hue . ', ' . $saturation . ', 13% );
 }
 
 body.colors-custom,
@@ -560,7 +560,6 @@
 	}
 }';
 
-
 	/**
 	 * Filters Twenty Seventeen custom colors CSS.
 	 *
Index: src/wp-content/themes/twentyseventeen/inc/custom-header.php
===================================================================
--- src/wp-content/themes/twentyseventeen/inc/custom-header.php	(revision 39548)
+++ src/wp-content/themes/twentyseventeen/inc/custom-header.php	(working copy)
@@ -111,6 +111,8 @@
 
 /**
  * Customize video play/pause button in the custom header.
+ *
+ * @param array $settings Video settings.
  */
 function twentyseventeen_video_controls( $settings ) {
 	$settings['l10n']['play'] = '<span class="screen-reader-text">' . __( 'Play background video', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'play' ) );
Index: src/wp-content/themes/twentyseventeen/inc/customizer.php
===================================================================
--- src/wp-content/themes/twentyseventeen/inc/customizer.php	(revision 39548)
+++ src/wp-content/themes/twentyseventeen/inc/customizer.php	(working copy)
@@ -123,6 +123,8 @@
 
 /**
  * Sanitize the page layout options.
+ *
+ * @param string $input Page layout.
  */
 function twentyseventeen_sanitize_page_layout( $input ) {
 	$valid = array(
@@ -139,11 +141,13 @@
 
 /**
  * Sanitize the colorscheme.
+ *
+ * @param string $input Color scheme.
  */
 function twentyseventeen_sanitize_colorscheme( $input ) {
 	$valid = array( 'light', 'dark', 'custom' );
 
-	if ( in_array( $input, $valid ) ) {
+	if ( in_array( $input, $valid, true ) ) {
 		return $input;
 	}
 
Index: src/wp-content/themes/twentyseventeen/inc/template-tags.php
===================================================================
--- src/wp-content/themes/twentyseventeen/inc/template-tags.php	(revision 39548)
+++ src/wp-content/themes/twentyseventeen/inc/template-tags.php	(working copy)
@@ -128,8 +128,8 @@
 /**
  * Display a front page section.
  *
- * @param $partial WP_Customize_Partial Partial associated with a selective refresh request.
- * @param $id integer Front page section to display.
+ * @param WP_Customize_Partial $partial Partial associated with a selective refresh request.
+ * @param integer              $id Front page section to display.
  */
 function twentyseventeen_front_page_section( $partial = null, $id = 0 ) {
 	if ( is_a( $partial, 'WP_Customize_Partial' ) ) {
Index: src/wp-content/themes/twentyseventeen/searchform.php
===================================================================
--- src/wp-content/themes/twentyseventeen/searchform.php	(revision 39548)
+++ src/wp-content/themes/twentyseventeen/searchform.php	(working copy)
@@ -7,6 +7,7 @@
  * @since 1.0
  * @version 1.0
  */
+
 ?>
 
 <?php $unique_id = esc_attr( uniqid( 'search-form-' ) ); ?>
Index: src/wp-content/themes/twentyseventeen/single.php
===================================================================
--- src/wp-content/themes/twentyseventeen/single.php	(revision 39548)
+++ src/wp-content/themes/twentyseventeen/single.php	(working copy)
@@ -17,22 +17,22 @@
 		<main id="main" class="site-main" role="main">
 
 			<?php
-				/* Start the Loop */
-				while ( have_posts() ) : the_post();
+			/* Start the Loop */
+			while ( have_posts() ) : the_post();
 
-					get_template_part( 'template-parts/post/content', get_post_format() );
+				get_template_part( 'template-parts/post/content', get_post_format() );
 
-					// If comments are open or we have at least one comment, load up the comment template.
-					if ( comments_open() || get_comments_number() ) :
-						comments_template();
-					endif;
+				// If comments are open or we have at least one comment, load up the comment template.
+				if ( comments_open() || get_comments_number() ) :
+					comments_template();
+				endif;
 
-					the_post_navigation( array(
-						'prev_text' => '<span class="screen-reader-text">' . __( 'Previous Post', 'twentyseventeen' ) . '</span><span aria-hidden="true" class="nav-subtitle">' . __( 'Previous', 'twentyseventeen' ) . '</span> <span class="nav-title"><span class="nav-title-icon-wrapper">' . twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '</span>%title</span>',
-						'next_text' => '<span class="screen-reader-text">' . __( 'Next Post', 'twentyseventeen' ) . '</span><span aria-hidden="true" class="nav-subtitle">' . __( 'Next', 'twentyseventeen' ) . '</span> <span class="nav-title">%title<span class="nav-title-icon-wrapper">' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ) . '</span></span>',
-					) );
+				the_post_navigation( array(
+					'prev_text' => '<span class="screen-reader-text">' . __( 'Previous Post', 'twentyseventeen' ) . '</span><span aria-hidden="true" class="nav-subtitle">' . __( 'Previous', 'twentyseventeen' ) . '</span> <span class="nav-title"><span class="nav-title-icon-wrapper">' . twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '</span>%title</span>',
+					'next_text' => '<span class="screen-reader-text">' . __( 'Next Post', 'twentyseventeen' ) . '</span><span aria-hidden="true" class="nav-subtitle">' . __( 'Next', 'twentyseventeen' ) . '</span> <span class="nav-title">%title<span class="nav-title-icon-wrapper">' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ) . '</span></span>',
+				) );
 
-				endwhile; // End of the loop.
+			endwhile; // End of the loop.
 			?>
 
 		</main><!-- #main -->
Index: src/wp-content/themes/twentyseventeen/template-parts/header/site-branding.php
===================================================================
--- src/wp-content/themes/twentyseventeen/template-parts/header/site-branding.php	(revision 39548)
+++ src/wp-content/themes/twentyseventeen/template-parts/header/site-branding.php	(working copy)
@@ -21,10 +21,13 @@
 				<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
 			<?php endif; ?>
 
-			<?php $description = get_bloginfo( 'description', 'display' );
-				if ( $description || is_customize_preview() ) : ?>
-					<p class="site-description"><?php echo $description; ?></p>
-				<?php endif; ?>
+			<?php
+			$description = get_bloginfo( 'description', 'display' );
+			
+			if ( $description || is_customize_preview() ) :
+			?>
+				<p class="site-description"><?php echo $description; ?></p>
+			<?php endif; ?>
 		</div><!-- .site-branding-text -->
 
 		<?php if ( ( twentyseventeen_is_frontpage() || ( is_home() && is_front_page() ) ) && ! has_nav_menu( 'top' ) ) : ?>
Index: src/wp-content/themes/twentyseventeen/template-parts/navigation/navigation-top.php
===================================================================
--- src/wp-content/themes/twentyseventeen/template-parts/navigation/navigation-top.php	(revision 39548)
+++ src/wp-content/themes/twentyseventeen/template-parts/navigation/navigation-top.php	(working copy)
@@ -10,7 +10,14 @@
 
 ?>
 <nav id="site-navigation" class="main-navigation" role="navigation" aria-label="<?php _e( 'Top Menu', 'twentyseventeen' ); ?>">
-	<button class="menu-toggle" aria-controls="top-menu" aria-expanded="false"><?php echo twentyseventeen_get_svg( array( 'icon' => 'bars' ) ); echo twentyseventeen_get_svg( array( 'icon' => 'close' ) ); _e( 'Menu', 'twentyseventeen' ); ?></button>
+	<button class="menu-toggle" aria-controls="top-menu" aria-expanded="false">
+		<?php 
+		echo twentyseventeen_get_svg( array( 'icon' => 'bars' ) ); 
+		echo twentyseventeen_get_svg( array( 'icon' => 'close' ) ); 
+		_e( 'Menu', 'twentyseventeen' );
+		?>
+	</button>
+	
 	<?php wp_nav_menu( array(
 		'theme_location' => 'top',
 		'menu_id'        => 'top-menu',
Index: src/wp-content/themes/twentyseventeen/template-parts/post/content-audio.php
===================================================================
--- src/wp-content/themes/twentyseventeen/template-parts/post/content-audio.php	(revision 39548)
+++ src/wp-content/themes/twentyseventeen/template-parts/post/content-audio.php	(working copy)
@@ -14,22 +14,22 @@
 
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
 	<?php
-		if ( is_sticky() && is_home() ) :
+		if ( is_sticky() && is_home() ) {
 			echo twentyseventeen_get_svg( array( 'icon' => 'thumb-tack' ) );
-		endif;
+		}
 	?>
 	<header class="entry-header">
 		<?php
-			if ( 'post' === get_post_type() ) :
+			if ( 'post' === get_post_type() ) {
 				echo '<div class="entry-meta">';
-					if ( is_single() ) :
+					if ( is_single() ) {
 						twentyseventeen_posted_on();
-					else :
+					} else {
 						echo twentyseventeen_time_link();
 						twentyseventeen_edit_link();
-					endif;
+					};
 				echo '</div><!-- .entry-meta -->';
-			endif;
+			};
 
 			if ( is_single() ) {
 				the_title( '<h1 class="entry-title">', '</h1>' );
@@ -60,20 +60,21 @@
 
 	<div class="entry-content">
 
-		<?php if ( ! is_single() ) :
+		<?php
+		if ( ! is_single() ) {
 
 			// If not a single post, highlight the audio file.
-			if ( ! empty( $audio ) ) :
+			if ( ! empty( $audio ) ) {
 				foreach ( $audio as $audio_html ) {
 					echo '<div class="entry-audio">';
 						echo $audio_html;
 					echo '</div><!-- .entry-audio -->';
 				}
-			endif;
+			};
 
-		endif;
+		};
 
-		if ( is_single() || empty( $audio ) ) :
+		if ( is_single() || empty( $audio ) ) {
 
 			/* translators: %s: Name of current post */
 			the_content( sprintf(
@@ -88,12 +89,15 @@
 				'link_after'  => '</span>',
 			) );
 
-		endif; ?>
+		};
+		?>
 
 	</div><!-- .entry-content -->
 
-	<?php if ( is_single() ) : ?>
-		<?php twentyseventeen_entry_footer(); ?>
-	<?php endif; ?>
+	<?php
+	if ( is_single() ) {
+		twentyseventeen_entry_footer();
+	}
+	?>
 
 </article><!-- #post-## -->
Index: src/wp-content/themes/twentyseventeen/template-parts/post/content-excerpt.php
===================================================================
--- src/wp-content/themes/twentyseventeen/template-parts/post/content-excerpt.php	(revision 39548)
+++ src/wp-content/themes/twentyseventeen/template-parts/post/content-excerpt.php	(working copy)
@@ -20,8 +20,8 @@
 		<?php if ( 'post' === get_post_type() ) : ?>
 			<div class="entry-meta">
 				<?php
-					echo twentyseventeen_time_link();
-					twentyseventeen_edit_link();
+				echo twentyseventeen_time_link();
+				twentyseventeen_edit_link();
 				?>
 			</div><!-- .entry-meta -->
 		<?php elseif ( 'page' === get_post_type() && get_edit_post_link() ) : ?>
Index: src/wp-content/themes/twentyseventeen/template-parts/post/content-gallery.php
===================================================================
--- src/wp-content/themes/twentyseventeen/template-parts/post/content-gallery.php	(revision 39548)
+++ src/wp-content/themes/twentyseventeen/template-parts/post/content-gallery.php	(working copy)
@@ -9,32 +9,33 @@
  * @since 1.0
  * @version 1.0
  */
+
 ?>
 
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
 	<?php
-		if ( is_sticky() && is_home() ) :
-			echo twentyseventeen_get_svg( array( 'icon' => 'thumb-tack' ) );
-		endif;
+	if ( is_sticky() && is_home() ) {
+		echo twentyseventeen_get_svg( array( 'icon' => 'thumb-tack' ) );
+	}
 	?>
 	<header class="entry-header">
 		<?php
-			if ( 'post' === get_post_type() ) :
-				echo '<div class="entry-meta">';
-					if ( is_single() ) :
-						twentyseventeen_posted_on();
-					else :
-						echo twentyseventeen_time_link();
-						twentyseventeen_edit_link();
-					endif;
-				echo '</div><!-- .entry-meta -->';
-			endif;
+		if ( 'post' === get_post_type() ) {
+			echo '<div class="entry-meta">';
+				if ( is_single() ) {
+					twentyseventeen_posted_on();
+				} else {
+					echo twentyseventeen_time_link();
+					twentyseventeen_edit_link();
+				};
+			echo '</div><!-- .entry-meta -->';
+		};
 
-			if ( is_single() ) {
-				the_title( '<h1 class="entry-title">', '</h1>' );
-			} else {
-				the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
-			}
+		if ( is_single() ) {
+			the_title( '<h1 class="entry-title">', '</h1>' );
+		} else {
+			the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
+		}
 		?>
 	</header><!-- .entry-header -->
 
@@ -48,18 +49,19 @@
 
 	<div class="entry-content">
 
-		<?php if ( ! is_single() ) :
+		<?php 
+		if ( ! is_single() ) {
 
 			// If not a single post, highlight the gallery.
-			if ( get_post_gallery() ) :
+			if ( get_post_gallery() ) {
 				echo '<div class="entry-gallery">';
 					echo get_post_gallery();
 				echo '</div>';
-			endif;
+			};
 
-		endif;
+		};
 
-		if ( is_single() || ! get_post_gallery() ) :
+		if ( is_single() || ! get_post_gallery() ) {
 
 			/* translators: %s: Name of current post */
 			the_content( sprintf(
@@ -74,12 +76,15 @@
 				'link_after'  => '</span>',
 			) );
 
-		endif; ?>
+		};
+		?>
 
 	</div><!-- .entry-content -->
 
-	<?php if ( is_single() ) : ?>
-		<?php twentyseventeen_entry_footer(); ?>
-	<?php endif; ?>
+	<?php
+	if ( is_single() ) {
+		twentyseventeen_entry_footer();
+	}
+	?>
 
 </article><!-- #post-## -->
Index: src/wp-content/themes/twentyseventeen/template-parts/post/content-image.php
===================================================================
--- src/wp-content/themes/twentyseventeen/template-parts/post/content-image.php	(revision 39548)
+++ src/wp-content/themes/twentyseventeen/template-parts/post/content-image.php	(working copy)
@@ -13,22 +13,22 @@
 
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
 	<?php
-		if ( is_sticky() && is_home() ) :
+		if ( is_sticky() && is_home() ) {
 			echo twentyseventeen_get_svg( array( 'icon' => 'thumb-tack' ) );
-		endif;
+		}
 	?>
 	<header class="entry-header">
 		<?php
-			if ( 'post' === get_post_type() ) :
+			if ( 'post' === get_post_type() ) {
 				echo '<div class="entry-meta">';
-					if ( is_single() ) :
+					if ( is_single() ) {
 						twentyseventeen_posted_on();
-					else :
+					} else {
 						echo twentyseventeen_time_link();
 						twentyseventeen_edit_link();
-					endif;
+					};
 				echo '</div><!-- .entry-meta -->';
-			endif;
+			};
 
 			if ( is_single() ) {
 				the_title( '<h1 class="entry-title">', '</h1>' );
@@ -48,7 +48,7 @@
 
 	<div class="entry-content">
 
-		<?php if ( is_single() || '' === get_the_post_thumbnail() ) :
+		<?php if ( is_single() || '' === get_the_post_thumbnail() ) {
 
 			// Only show content if is a single post, or if there's no featured image.
 			/* translators: %s: Name of current post */
@@ -64,12 +64,15 @@
 				'link_after'  => '</span>',
 			) );
 
-		endif; ?>
+		};
+		?>
 
 	</div><!-- .entry-content -->
 
-	<?php if ( is_single() ) : ?>
-		<?php twentyseventeen_entry_footer(); ?>
-	<?php endif; ?>
+	<?php
+	if ( is_single() ) {
+		twentyseventeen_entry_footer();
+	}
+	?>
 
 </article><!-- #post-## -->
Index: src/wp-content/themes/twentyseventeen/template-parts/post/content-video.php
===================================================================
--- src/wp-content/themes/twentyseventeen/template-parts/post/content-video.php	(revision 39548)
+++ src/wp-content/themes/twentyseventeen/template-parts/post/content-video.php	(working copy)
@@ -13,22 +13,22 @@
 
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
 	<?php
-		if ( is_sticky() && is_home() ) :
+		if ( is_sticky() && is_home() ) {
 			echo twentyseventeen_get_svg( array( 'icon' => 'thumb-tack' ) );
-		endif;
+		}
 	?>
 	<header class="entry-header">
 		<?php
-			if ( 'post' === get_post_type() ) :
+			if ( 'post' === get_post_type() ) {
 				echo '<div class="entry-meta">';
-					if ( is_single() ) :
+					if ( is_single() ) {
 						twentyseventeen_posted_on();
-					else :
+					} else {
 						echo twentyseventeen_time_link();
 						twentyseventeen_edit_link();
-					endif;
+					}
 				echo '</div><!-- .entry-meta -->';
-			endif;
+			};
 
 			if ( is_single() ) {
 				the_title( '<h1 class="entry-title">', '</h1>' );
@@ -58,20 +58,21 @@
 
 	<div class="entry-content">
 
-		<?php if ( ! is_single() ) :
+		<?php 
+		if ( ! is_single() ) {
 
 			// If not a single post, highlight the video file.
-			if ( ! empty( $video ) ) :
+			if ( ! empty( $video ) ) {
 				foreach ( $video as $video_html ) {
 					echo '<div class="entry-video">';
 						echo $video_html;
 					echo '</div>';
 				}
-			endif;
+			};
 
-		endif;
+		};
 
-		if ( is_single() || empty( $video ) ) :
+		if ( is_single() || empty( $video ) ) {
 
 			/* translators: %s: Name of current post */
 			the_content( sprintf(
@@ -85,13 +86,15 @@
 				'link_before' => '<span class="page-number">',
 				'link_after'  => '</span>',
 			) );
+		};
+		?>
 
-		endif; ?>
-
 	</div><!-- .entry-content -->
 
-	<?php if ( is_single() ) : ?>
-		<?php twentyseventeen_entry_footer(); ?>
-	<?php endif; ?>
+	<?php
+	if ( is_single() ) {
+		twentyseventeen_entry_footer();
+	}
+	?>
 
 </article><!-- #post-## -->
Index: src/wp-content/themes/twentyseventeen/template-parts/post/content.php
===================================================================
--- src/wp-content/themes/twentyseventeen/template-parts/post/content.php	(revision 39548)
+++ src/wp-content/themes/twentyseventeen/template-parts/post/content.php	(working copy)
@@ -14,28 +14,28 @@
 
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
 	<?php
-		if ( is_sticky() && is_home() ) :
-			echo twentyseventeen_get_svg( array( 'icon' => 'thumb-tack' ) );
-		endif;
+	if ( is_sticky() && is_home() ) :
+		echo twentyseventeen_get_svg( array( 'icon' => 'thumb-tack' ) );
+	endif;
 	?>
 	<header class="entry-header">
 		<?php
-			if ( 'post' === get_post_type() ) :
-				echo '<div class="entry-meta">';
-					if ( is_single() ) :
-						twentyseventeen_posted_on();
-					else :
-						echo twentyseventeen_time_link();
-						twentyseventeen_edit_link();
-					endif;
-				echo '</div><!-- .entry-meta -->';
-			endif;
+		if ( 'post' === get_post_type() ) {
+			echo '<div class="entry-meta">';
+				if ( is_single() ) {
+					twentyseventeen_posted_on();
+				} else {
+					echo twentyseventeen_time_link();
+					twentyseventeen_edit_link();
+				};
+			echo '</div><!-- .entry-meta -->';
+		};
 
-			if ( is_single() ) {
-				the_title( '<h1 class="entry-title">', '</h1>' );
-			} else {
-				the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
-			}
+		if ( is_single() ) {
+			the_title( '<h1 class="entry-title">', '</h1>' );
+		} else {
+			the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
+		}
 		?>
 	</header><!-- .entry-header -->
 
@@ -49,23 +49,25 @@
 
 	<div class="entry-content">
 		<?php
-			/* translators: %s: Name of current post */
-			the_content( sprintf(
-				__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
-				get_the_title()
-			) );
+		/* translators: %s: Name of current post */
+		the_content( sprintf(
+			__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
+			get_the_title()
+		) );
 
-			wp_link_pages( array(
-				'before'      => '<div class="page-links">' . __( 'Pages:', 'twentyseventeen' ),
-				'after'       => '</div>',
-				'link_before' => '<span class="page-number">',
-				'link_after'  => '</span>',
-			) );
+		wp_link_pages( array(
+			'before'      => '<div class="page-links">' . __( 'Pages:', 'twentyseventeen' ),
+			'after'       => '</div>',
+			'link_before' => '<span class="page-number">',
+			'link_after'  => '</span>',
+		) );
 		?>
 	</div><!-- .entry-content -->
 
-	<?php if ( is_single() ) : ?>
-		<?php twentyseventeen_entry_footer(); ?>
-	<?php endif; ?>
+	<?php 
+	if ( is_single() ) {
+		twentyseventeen_entry_footer();
+	}
+	?>
 
 </article><!-- #post-## -->
