Add the Project and Blog index pages (no pagination just yet)

This commit is contained in:
itsfinniii
2026-03-28 16:40:54 +01:00
parent 5cbc906d65
commit 7e501c399b
7 changed files with 315 additions and 3 deletions

View File

@@ -0,0 +1,39 @@
query getPaginatedBlogs($date: String!, $pageNumber: Int!, $limit: Int!) {
Blogs(sort: ["-date", "-date_created"], filter: { status: { _eq: "published" }, date: { _lte: $date } }, limit: $limit, page: $pageNumber) {
id,
date_created,
date_updated,
status,
title,
url,
date,
content,
tags {
Tags_id {
id,
date_created,
date_updated,
text,
code,
color
}
},
search_engine {
id,
date_created,
date_updated,
title,
description,
thumbnail {
id,
created_on,
filename_disk,
width,
height
},
canonical,
allow_crawler,
priority
}
}
}

View File

@@ -0,0 +1,39 @@
query getAllProjects($date: String!, $pageNumber: Int!, $limit: Int!) {
Projects(sort: ["-date", "-date_created"], filter: { status: { _eq: "published" }, date: { _lte: $date } }, limit: $limit, page: $pageNumber) {
id,
date_created,
date_updated,
status,
title,
url,
date,
content,
tags {
Tags_id {
id,
date_created,
date_updated,
text,
code,
color
}
},
search_engine {
id,
date_created,
date_updated,
title,
description,
thumbnail {
id,
created_on,
filename_disk,
width,
height
},
canonical,
allow_crawler,
priority
}
}
}