Permalink
Browse files

Allow users to display excerpts in indices

  • Loading branch information...
1 parent b1cdcde commit bd4bba261267d93d71bcc36865b37ffd4e7a2cd6 @kwight committed Oct 3, 2012
Showing with 8 additions and 2 deletions.
  1. +8 −2 content.php
View
@@ -25,8 +25,14 @@
<?php endif; ?>
</header><!-- .entry-header -->
- <div class="entry-content<?php echo $class; ?>">
- <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'debut' ) ); ?>
+ <div class="entry-content">
+ <?php
+ if ( has_excerpt() ) {
+ the_excerpt();
+ } else {
+ the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'debut' ) );
+ }
+ ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'debut' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->

0 comments on commit bd4bba2

Please sign in to comment.