Skip to content

Instantly share code, notes, and snippets.

@DannyCooper
Created March 17, 2020 12:30
Show Gist options
  • Save DannyCooper/961b28a2478724af6ba13c113ec84e53 to your computer and use it in GitHub Desktop.
Save DannyCooper/961b28a2478724af6ba13c113ec84e53 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<header class="site-header">
<p class="site-title">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>">
<?php bloginfo( 'name' ); ?>
</a>
</p>
<p class="site-description"><?php bloginfo( 'description' ); ?></p>
</header><!-- .site-header -->
<div class="site-content">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
?>
<article <?php post_class(); ?>>
<header class="entry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content( esc_html__( 'Continue reading &rarr;', 'arke' ) ); ?>
</div><!-- .entry-content -->
</article><!-- #post-## -->
<?php
// 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;
endwhile;
else :
?>
<article class="no-results">
<header class="entry-header">
<h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'arke' ); ?></h1>
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content( esc_html__( 'Continue reading &rarr;', 'arke' ) ); ?>
</div><!-- .entry-content -->
</article><!-- .no-results -->
<?php
endif;
?>
</div><!-- .site-content -->
<?php wp_footer(); ?>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment