Updated README
This commit is contained in:
parent
194fc42be3
commit
b6cb3bf3e6
5 changed files with 57 additions and 8 deletions
28
single.php
Normal file
28
single.php
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?php get_header(); ?>
|
||||
|
||||
<main class="main" role="main">
|
||||
<div class="container">
|
||||
|
||||
<?php while ( have_posts() ) : the_post(); ?>
|
||||
|
||||
<article <?php post_class(); ?>>
|
||||
|
||||
<header class="post__header" role="heading">
|
||||
<h3 class="post__title"><?php the_title(); ?></h3>
|
||||
</header>
|
||||
|
||||
<?php the_content(); ?>
|
||||
|
||||
<footer class="post__footer">
|
||||
<p class="post__date"><time><?php echo human_time_diff( strtotime( $post->post_date ) ) . ' ' . __( 'ago' ); ?></time></p>
|
||||
<p class="post__comments"><?php comments_popup_link( __( 'No comments yet' ), __( '1 comment' ), __( '% comments' ) ); ?></p>
|
||||
</footer>
|
||||
|
||||
</article>
|
||||
|
||||
<?php endwhile; ?>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<?php get_footer(); ?>
|
Loading…
Add table
Add a link
Reference in a new issue