Skip to content

Commit

Permalink
only ever get 1 highlighted post
Browse files Browse the repository at this point in the history
  • Loading branch information
drewlyton committed Jan 15, 2024
1 parent 98b34d5 commit e3082ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export async function loader() {
const { all, highlighted } = (await sanity.fetch(
`{
"all": ${getAllPosts()}| order(publishedAt desc),
"highlighted": ${getPostsByTag(["highlighted"])}| order(publishedAt desc),
"highlighted": ${getPostsByTag(["highlighted"])}[0...1],
}`
)) as { all: Post[]; highlighted: Post[] };
return json(
Expand Down

0 comments on commit e3082ac

Please sign in to comment.