Tidy up formatting
This commit is contained in:
parent
d7db833352
commit
06670d574e
|
@ -2,7 +2,7 @@
|
|||
<html <?php language_attributes(); ?>>
|
||||
<head>
|
||||
<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="MobileOptimized" content="320">
|
||||
<title><?php wp_title( ' / ', true, 'right' ); bloginfo( 'name' ); ?></title>
|
||||
|
|
44
index.php
44
index.php
|
@ -1,36 +1,40 @@
|
|||
<?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">
|
||||
<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 post_class(); ?>>
|
||||
|
||||
<?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">
|
||||
<div class="alignleft"><?php previous_posts_link( __( 'Previous Entries' ) ) ?></div>
|
||||
<div class="alignright"><?php next_posts_link( __( 'Next Entries' ) ) ?></div>
|
||||
</div>
|
||||
<?php endwhile; ?>
|
||||
|
||||
<div class="pagination">
|
||||
<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>
|
||||
|
||||
<aside class="sidebar">
|
||||
<?php get_sidebar(); ?>
|
||||
</aside>
|
||||
|
||||
</div>
|
||||
|
||||
<?php get_footer(); ?>
|
||||
|
|
Loading…
Reference in New Issue