Hey hey everybody
Is it possible to order content by date, but with dates separated by hyphens?
By configuring num
as follows in the blueprint, here is what I achieve:
num: "{{ page.date.toDate('YmdHi') }}"
.
βββ 201911151606_c4q14
βββ 201911210541_ag8fe
βββ 201911210548_ap737
βββ 201912051126_mxn8v
I would like to achieve something like this.
.
βββ 2019-11-15-16-06_c4q14
βββ 2019-11-21-05-41_ag8fe
βββ 2019-11-21-05-48_ap737
βββ 2019-12-05-11-26_mxn8v
But if I try this configuration, I canβt do it.
num: "{{ page.date.toDate('Y-m-d-H-i') }}"
or
num: "{{ page.date.toDate('Y') }}-{{ page.date.toDate('m') }}-{{ page.date.toDate('d') }}-{{ page.date.toDate('H') }}-{{ page.date.toDate('i') }}"