fix(search): 🩹 fix blog post listing
Some checks reported warnings
/ phplint (push) Has been cancelled
Some checks reported warnings
/ phplint (push) Has been cancelled
This commit is contained in:
parent
5e2f0a7185
commit
6ae06b4765
2 changed files with 7 additions and 0 deletions
|
@ -35,6 +35,9 @@ class DergInsertRenderer {
|
|||
if(isset($renderConfig['page'])) {
|
||||
$args['page'] = $this->postAdapter->get_post($renderConfig['page']);
|
||||
}
|
||||
if(isset($renderConfig['search'])) {
|
||||
$args['search_results'] = $this->postAdapter->search_posts($renderConfig['search']);
|
||||
}
|
||||
|
||||
return $this->twig->render($template, $args);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
{% for post in search_results %}
|
||||
{{ include('fragments/blog/card.html') }}
|
||||
{% endfor %}
|
Loading…
Add table
Add a link
Reference in a new issue