feat(search): ✨ Add search_tags//search_results post rendering data
This commit is contained in:
parent
bf2486caa4
commit
9a5b9e609e
1 changed files with 5 additions and 1 deletions
|
@ -38,8 +38,12 @@ function render_post($post, $args = []) {
|
|||
?? ($post['markdown'] == '' ? 'directory' : 'vanilla');
|
||||
|
||||
|
||||
if(isset($post['search_tags'])) {
|
||||
$post['search'] = $post['search_tags'];
|
||||
}
|
||||
|
||||
if(isset($post['search'])) {
|
||||
$args['search'] = $adapter->search_posts($post['search']);
|
||||
$args['search_results'] = $post->handler->search_posts($post['search']);
|
||||
}
|
||||
|
||||
$args['page'] = $post;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue