Add last projects component and fixing some small bugs

This commit is contained in:
itsfinniii
2026-03-26 22:22:21 +01:00
parent 82c0905c0e
commit 1c41348afe
5 changed files with 177 additions and 3 deletions

View File

@@ -0,0 +1,39 @@
query getLastProjects($date: String!, $amount: Int!) {
Projects(sort: ["-date", "-date_created"], filter: { status: { _eq: "published" }, date: { _lte: $date } }, limit: $amount) {
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

@@ -27,7 +27,7 @@ query getAllProjects($date: String!) {
thumbnail {
id,
created_on,
filename_download,
filename_disk,
width,
height
},