Tidy up formatting

This commit is contained in:
Mike Francis 2014-01-30 11:26:35 +00:00
parent d7db833352
commit 06670d574e
2 changed files with 25 additions and 21 deletions

View File

@ -2,7 +2,7 @@
<html <?php language_attributes(); ?>> <html <?php language_attributes(); ?>>
<head> <head>
<meta charset="<?php bloginfo( 'charset' ); ?>"> <meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<meta name="HandheldFriendly" content="true"> <meta name="HandheldFriendly" content="true">
<meta name="MobileOptimized" content="320"> <meta name="MobileOptimized" content="320">
<title><?php wp_title( ' / ', true, 'right' ); bloginfo( 'name' ); ?></title> <title><?php wp_title( ' / ', true, 'right' ); bloginfo( 'name' ); ?></title>

View File

@ -1,36 +1,40 @@
<?php get_header(); ?> <?php get_header(); ?>
<div class="content container"> <div class="content">
<div class="main" role="main"> <div class="container">
<?php while ( have_posts() ) : the_post(); ?> <main class="main" role="main">
<article <?php post_class(); ?>> <?php while ( have_posts() ) : the_post(); ?>
<header role="heading"> <article <?php post_class(); ?>>
<h3 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<p class="date"><time pubDate datetime="<?php echo $post->post_date; ?>"><?php echo human_time_diff( strtotime( $post->post_date ) ); ?></time></p>
<p class="comments"><?php comments_popup_link( __( 'No comments yet' ), __( '1 comment' ), __( '% comments' ) ); ?></p>
</header>
<?php the_content( __( 'Read More' ) ); ?> <header role="heading">
<h3 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<p class="date"><time pubDate datetime="<?php echo $post->post_date; ?>"><?php echo human_time_diff( strtotime( $post->post_date ) ); ?></time></p>
<p class="comments"><?php comments_popup_link( __( 'No comments yet' ), __( '1 comment' ), __( '% comments' ) ); ?></p>
</header>
</article> <?php the_content( __( 'Read More' ) ); ?>
<?php endwhile; ?> </article>
<div class="pagination"> <?php endwhile; ?>
<div class="alignleft"><?php previous_posts_link( __( 'Previous Entries' ) ) ?></div>
<div class="alignright"><?php next_posts_link( __( 'Next Entries' ) ) ?></div> <div class="pagination">
</div> <div class="alignleft"><?php previous_posts_link( __( 'Previous Entries' ) ) ?></div>
<div class="alignright"><?php next_posts_link( __( 'Next Entries' ) ) ?></div>
</div>
</main>
<aside class="sidebar">
<?php get_sidebar(); ?>
</aside>
</div> </div>
<aside class="sidebar">
<?php get_sidebar(); ?>
</aside>
</div> </div>
<?php get_footer(); ?> <?php get_footer(); ?>