no-style-please icon indicating copy to clipboard operation
no-style-please copied to clipboard

Date is not accurate

Open minseongkimdev opened this issue 3 years ago • 1 comments

Thanks for make great theme.

but i found some bug which is Date is not accurate. (in screenshot)

Do you kwow how to custom a date?

i appreciate your theme again. thanks.

스크린샷 2021-05-13 오후 4 56 30

minseongkimdev avatar May 13 '21 07:05 minseongkimdev

I reply you from my user experience in this theme.

The date is using the format YYYY-mm-dd.

By default must be the format in the file-name (with a '-' before the title of the post) and in the header (the header requires an extended version which I generate using date +"%Y-%m-%d %H:%M:%S %z").

This cannot be changed AFAIK but you can change the way it is viewed in the main page or in each post. I mean, only the low-level version (how you write and publish a post) is the thing that cannot be changed.

Here i show you an example in my _config.yml about how to change the format showed:

theme_config:
  date_format: "%d-%m-%Y"
permalink: /:categories/:year/:month/:day/:title:output_ext

In date_format you change the way it is showed in both posts and home page. With permalink you change how the folder structure in the website is done.

EchedelleLR avatar May 23 '21 15:05 EchedelleLR