diff --git a/workspaces/cms-scripts/src/algolia.ts b/workspaces/cms-scripts/src/algolia.ts index 234144fc48..bc7e350627 100644 --- a/workspaces/cms-scripts/src/algolia.ts +++ b/workspaces/cms-scripts/src/algolia.ts @@ -81,6 +81,12 @@ try { }) .wait(); } + + if (resourceName === "jobs") { + await index.setSettings({ + customRanking: ["desc(published_at_ts)"], + }); + } } } catch (err) { console.error(err); diff --git a/workspaces/website/src/pages/jobs/JobsCard.tsx b/workspaces/website/src/pages/jobs/JobsCard.tsx index 85def9a99c..1289730272 100644 --- a/workspaces/website/src/pages/jobs/JobsCard.tsx +++ b/workspaces/website/src/pages/jobs/JobsCard.tsx @@ -1,5 +1,6 @@ import { ListCard } from "@ui/Card/ListCard"; import { JobsHit } from "./JobsPage"; +import moment from "moment"; export default function JobsCard({ hit }: { hit: JobsHit }) { let tags: string[] = []; @@ -10,7 +11,7 @@ export default function JobsCard({ hit }: { hit: JobsHit }) { return (