first commit
This commit is contained in:
15
search.php
Normal file
15
search.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
global $paged;
|
||||
if (!isset($paged) || !$paged){
|
||||
$paged = 1;
|
||||
}
|
||||
|
||||
$templates = array( 'index.twig' );
|
||||
$context = Timber::context();
|
||||
|
||||
$context['search_query'] = get_search_query();
|
||||
$context['search_title'] = get_search_query();
|
||||
$context['posts'] = new Timber\PostQuery();
|
||||
$context['pagination'] = Timber::get_pagination();
|
||||
|
||||
Timber::render( $templates, $context );
|
||||
Reference in New Issue
Block a user