fix(search): 🩹 fix blog post listing
Some checks reported warnings
/ phplint (push) Has been cancelled

This commit is contained in:
David Bailey 2025-03-27 23:33:49 +01:00
parent 5e2f0a7185
commit 6ae06b4765
2 changed files with 7 additions and 0 deletions

View file

@ -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);
}

View file

@ -0,0 +1,4 @@
{% for post in search_results %}
{{ include('fragments/blog/card.html') }}
{% endfor %}