barebones/index.php
Lukas Juhas 6b6864f7a0 2.0.1
Comment out example "add_image_size" as it can be easily forgotten
which leaves you with extra unused image size, Add CHANGELOG.MD to
track changes, Tidy up formatting using PHP-CS-Fixer (mostly spacing),
Update README.MD dependencies
2016-08-09 13:22:26 +01:00

25 lines
809 B
PHP
Executable file

<?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"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<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>
</header>
<?php the_content(__('Read More')); ?>
</article>
<?php endwhile; ?>
</div>
</main>
<?php get_footer(); ?>