link search results to pages

This commit is contained in:
2024-08-09 17:43:01 +02:00
parent 99ad732a1e
commit e96ec17c42
4 changed files with 43 additions and 8 deletions

View File

@ -18,6 +18,9 @@ export default async function Page({
query search($query: String) {
results: search(query: $query) {
__typename
... on PageInterface {
slug
}
... on NewsPage {
id
title