File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 3131 <nu-typography type =" subtitle" class =" vertical-text rotate-180 font-inter font-bold text-cinnabar h-40 text-right px-2 uppercase" >{{ `00${index + 1}` }}</nu-typography >
3232 <div class =" flex flex-col gap-4 pr-6" >
3333 <div class =" flex gap-6 items-center" >
34- <div ><nu-typography type =" caption" class =" !font-bold" >{{ item.created_at }}</nu-typography ></div >
34+ <div ><nu-typography type =" caption" class =" !font-bold" >{{ new Date( item.created_at).toLocaleDateString() }}</nu-typography ></div >
3535 <div class =" bg-cinnabar h-[6px] w-[6px]" />
3636 <div ><nu-typography type =" cta-text" class =" text-cinnabar !font-bold" >{{ item.category }}</nu-typography ></div >
3737 </div >
6666 <div class =" flex gap-12 py-8" >
6767 <div class =" flex flex-col gap-4 pr-6 w-full justify-center" >
6868 <div class =" flex gap-6 items-center" >
69- <div ><nu-typography type =" caption" class =" !font-bold" >{{ item.created_at }}</nu-typography ></div >
69+ <div ><nu-typography type =" caption" class =" !font-bold" >{{ new Date( item.created_at).toLocaleDateString() }}</nu-typography ></div >
7070 <div class =" bg-onyx h-[6px] w-[6px]" />
7171 <div ><nu-typography type =" cta-text" class =" !font-bold" >{{ item.category }}</nu-typography ></div >
7272 </div >
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ const url = useRequestURL()
4444 </h1 >
4545 <div class =" relative pb-6 flex justify-between @sm:pr-layout gap-6" >
4646 <div class =" flex gap-6 items-center" >
47- <div ><nu-typography type =" caption" class =" text-chinese-black !font-bold" >{{ doc.created_at }}</nu-typography ></div >
47+ <div ><nu-typography type =" caption" class =" text-chinese-black !font-bold" >{{ new Date( doc.created_at).toLocaleDateString() }}</nu-typography ></div >
4848 <div class =" bg-cinnabar h-[6px] w-[6px]" />
4949 <div ><nu-typography type =" cta-text" class =" text-cinnabar !font-bold" >{{ doc.category }}</nu-typography ></div >
5050 </div >
@@ -97,7 +97,7 @@ const url = useRequestURL()
9797 <nu-link :label =" `Lire l'article ${item.title}`" :to =" item._path" >
9898 <nu-tile
9999 :title =" item.title"
100- :category =" `${item.created_at} ${item.category}`"
100+ :category =" `${new Date( item.created_at).toLocaleDateString() } ${item.category}`"
101101 :picture =" item.image?.src"
102102 :caption =" `Article 00${index + 1}`"
103103 />
You can’t perform that action at this time.
0 commit comments