Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date is not accurate #23

Open
minseongkimdev opened this issue May 13, 2021 · 1 comment
Open

Date is not accurate #23

minseongkimdev opened this issue May 13, 2021 · 1 comment

Comments

@minseongkimdev
Copy link

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

@EchedelleLR
Copy link

EchedelleLR commented May 23, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants