diff --git a/app/data/sanityClient.server.ts b/app/data/sanityClient.server.ts index b9d46ab..5ec568e 100644 --- a/app/data/sanityClient.server.ts +++ b/app/data/sanityClient.server.ts @@ -16,7 +16,7 @@ export function getPostsByTag(tags: string[]) { } export function getAllPosts() { - return `*[_type == "post"]{_id, title, description, mainImage, tags[]->{title}, "slug": slug.current}`; + return `*[_type == "post"]{_id, title, description, mainImage, tags[]->{title}, "slug": slug.current, publishedAt}`; } export function getPostsFeed() {