rochacbruno / marmite

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

[feat] Allow customization of display date format #82

Closed rochacbruno closed 3 weeks ago

rochacbruno commented 1 month 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 3 weeks 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 3 weeks ago

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

I think that is all.

rochacbruno commented 3 weeks ago

hey @brunobarros2093 there is an open PR for this issue, are you ok if I merge it?

brunobarros2093 commented 3 weeks ago

@rochacbruno Sure, no problem, go ahead