rochacbruno / marmite

Markdown makes sites - A Static Site Generator for Blogs
https://rochacbruno.github.io/marmite/
GNU Affero General Public License v3.0
340 stars 19 forks source link

[feat] Allow customization of display date format #82

Open rochacbruno opened 1 week ago

rochacbruno commented 1 week ago

The dates shown in list.html and content.html takes a string format.

That format must be configurable

marmite.yaml

output_date_format: "%D/%M/%Y"

Check chrono for valid options, invalid date must raise error.

[!IMPORTANT] This has nothing to do with the input_date_format on get_date function, those are fixed and can't be changed, this issue is only about adding to config and using on templates.

brunobarros2093 commented 2 days 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)

rochacbruno commented 1 day ago

Take your time @brunobarros2093 , I can give you some directions.

I think that is all.