File tree 3 files changed +26
-0
lines changed
3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ ### HEAD
2
+ * Add search templates ([ #1459 ] ( https://github.com/roots/sage/issues/1459 ) )
3
+
1
4
### 8.2.1: May 7th, 2015
2
5
* Update BrowserSync ([ #1457 ] ( https://github.com/roots/sage/issues/1457 ) )
3
6
* Bump dependencies ([ #1448 ] ( https://github.com/roots/sage/issues/1448 ) )
Original file line number Diff line number Diff line change
1
+ <?php get_template_part ('templates/page ' , 'header ' ); ?>
2
+
3
+ <?php if (!have_posts ()) : ?>
4
+ <div class="alert alert-warning">
5
+ <?php _e ('Sorry, no results were found. ' , 'sage ' ); ?>
6
+ </div>
7
+ <?php get_search_form (); ?>
8
+ <?php endif ; ?>
9
+
10
+ <?php while (have_posts ()) : the_post (); ?>
11
+ <?php get_template_part ('templates/content ' , 'search ' ); ?>
12
+ <?php endwhile ; ?>
13
+
14
+ <?php the_posts_navigation (); ?>
Original file line number Diff line number Diff line change
1
+ <article <?php post_class (); ?> >
2
+ <header>
3
+ <h2 class="entry-title"><a href="<?php the_permalink (); ?> "><?php the_title (); ?> </a></h2>
4
+ <?php if (get_post_type () === 'post ' ) { get_template_part ('templates/entry-meta ' ); } ?>
5
+ </header>
6
+ <div class="entry-summary">
7
+ <?php the_excerpt (); ?>
8
+ </div>
9
+ </article>
You can’t perform that action at this time.
0 commit comments