Skip to content

Instantly share code, notes, and snippets.

@jdcauley
Created January 22, 2014 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdcauley/8562690 to your computer and use it in GitHub Desktop.
Save jdcauley/8562690 to your computer and use it in GitHub Desktop.
edit lib/content.php
<div class="col-md-3 post-grid">
<article <?php post_class(); ?>>
<header>
<a href="<?php the_permalink(); ?>">
<?php if (has_post_thumbnail()): ?>
<?php the_post_thumbnail('', array('class' => 'center img-responsive')); ?>
<?php else : ?>
<img class="center img-responsive" src="<?php echo get_template_directory_uri(); ?>/assets/img/placeholder.jpg">
<?php endif; ?>
</a>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php get_template_part('templates/entry-meta'); ?>
</header>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div>
</article>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment