Skip to content

Commit

Permalink
fix: algolia variable sort
Browse files Browse the repository at this point in the history
  • Loading branch information
ayuhito committed Jan 13, 2024
1 parent 50cfae4 commit 366c8a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/algolia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const updateAlgoliaIndex = async (force?: boolean) => {
styles: metadata.styles,
category: metadata.category,
defSubset: metadata.defSubset,
variable: metadata.variable,
variable: Boolean(metadata.variable),
// Algolia sorts date using a unix timestamp instead
lastModified: Math.floor(
new Date(metadata.lastModified).getTime() / 1000
Expand Down

0 comments on commit 366c8a6

Please sign in to comment.