[Bug] `chronological_record_meta` in `config.yml` can not be specified another custom meta.
Closed this issue · 2 comments
What version of Cosma are you using?
CLI 2.0.0
On which operating system(s) did you observe the bug?
- macOS
- Windows
- Linux
What version of the operating system are you on?
Windows 10
Actions leading to the bug
- install cosma
npm install @graphlab-fr/cosma -g
, version 2.0.2 cosma c
add a configure file and write it- run
cosma m
- open
cosmoscope.html
in Browser - click Mode chronologique
Bug description
Since migration, all my markdown files have the same creation date on Windows. Fortunately, their front-matter has a date
metadate field that records the actural creation date of the file. Its format is like 2023-07-10 23:16:32.
I refered the user manual, which states that chronological_record_meta
in cosma configuration file can be set to another metadata field declared in record_metas.
Here is an example YAML configuration:
chronological_record_meta: date
record_metas:
- date
However, it didn't work as expected. After running cosma m
, the chronological_record_meta
reverted back to the default value 'created' .
I questioned whether the format of date
was incorrect, but I have tried 2023-07-10, 20230710231632 and 1650257016(timestamp), none of which worked. Did I make any mistakes?
Additional information
The html page is displayed as below as I click 'Mode chronologique':
Hi @uuanqin. We have streamlined chronological mode for now. The parameter chronological_record_meta
has been removed and chronological mode now automatically uses begin
and end
metadata. This closes the issue without really solving it. However, we will add the ability to define custom chronological metadata again in a future update. If you want, I'll notify you here when we do that.