Update Homepage query
Filter published photos only
This commit is contained in:
@@ -5,7 +5,11 @@ export async function get({}: RequestEvent): Promise<RequestHandlerOutput> {
|
|||||||
try {
|
try {
|
||||||
const res = await fetchAPI(`
|
const res = await fetchAPI(`
|
||||||
query {
|
query {
|
||||||
photo (limit: 11, sort: ["-date_created"]) {
|
photo (
|
||||||
|
limit: 11,
|
||||||
|
sort: ["-date_created"],
|
||||||
|
filter: { status: { _eq: "published" }},
|
||||||
|
) {
|
||||||
slug
|
slug
|
||||||
title
|
title
|
||||||
city
|
city
|
||||||
|
|||||||
Reference in New Issue
Block a user