From 2283bc9ad88f0503f6bea559e47fc81ab0a20498 Mon Sep 17 00:00:00 2001 From: Manuel Ernesto Garcia Date: Tue, 15 Oct 2024 23:02:00 -0400 Subject: [PATCH] adding date to job offers --- src/components/jobs/jobCard.astro | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/components/jobs/jobCard.astro b/src/components/jobs/jobCard.astro index 7816e00b..d0de4ba6 100644 --- a/src/components/jobs/jobCard.astro +++ b/src/components/jobs/jobCard.astro @@ -2,14 +2,16 @@ import profileCategories from "../../data/profileCategories.json"; import jobsCategories from "../../data/jobsCategories.json"; import JobCardCategory from "./jobCardCategory.astro"; +import dayjs from "dayjs"; const { job } = Astro.props; const jobUrl = `/empleos/${job.pubDate}/${job.slug}`; const locationLabel = job.location ? job.location : "Presencial"; +const display_date = dayjs(job.pubDate).format("DD/MM/YY"); --- -
+
{job.title}{job.description}
{ job.salary && ( @@ -96,13 +98,18 @@ const locationLabel = job.location ? job.location : "Presencial"; )) } -
-
-
+
+
+ +

{display_date}

+
+
+
+