Open rochacbruno opened 1 week ago
Hi @rochacbruno, how you doing? I would like to work on this issue or at least help to solve it, but I am new to Rust, how fast do you want it to be fixed? I may take a while (like a week or two alone - maybe little exageration here)
Take your time @brunobarros2093 , I can give you some directions.
Add output_date_format
to the Marmite
struct on config.rs
along with its default function, the default function will return a String containing "%b %e, %Y"
which is the default format.
Then users will be able to add output_date_format: "other format"
(https://docs.rs/chrono/latest/chrono/format/strftime/index.html)
Then change templates, wherever there is a | date(format="...")
replace with | date(format=site.output_date_format)
I think that is all.
The dates shown in
list.html
andcontent.html
takes a string format.That format must be configurable
marmite.yaml
Check chrono for valid options, invalid date must raise error.