replace updatedAt to createdAt in the blog

This commit is contained in:
2026-03-06 20:31:16 +01:00
parent d68eb5161e
commit 11071b2b3a
+2 -2
View File
@@ -34,7 +34,7 @@ try {
const LIST_QUERY = `
{
pages {
list(orderBy: UPDATED, orderByDirection: DESC, tags: ["blog"]) {
list(orderBy: CREATED, orderByDirection: DESC, tags: ["blog"]) {
id
path
title
@@ -195,7 +195,7 @@ function getCleanPreview(content: string): string {
New Post
</span>
)}
<span>{timeAgo(page.updatedAt)}</span>
<span>{timeAgo(page.createdAt)}</span>
</div>
</div>
</div>