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

Fix wrong date formatting #15

Merged
merged 1 commit into from
Feb 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ features: # Additional features
...
size: 5 # Number of articles in one page, default: 10
locale: en # The locale for time localizations, default: system's locale
time_format: '%Y-%m-%d %h:%m:%s' # The format used to display the time
meta_time_format: '%Y-%m-%d %h:%m:%s' # The format used to parse the time from meta
time_format: '%Y-%m-%d %H:%M:%S' # The format used to display the time
meta_time_format: '%Y-%m-%d %H:%M:%S' # The format used to parse the time from meta
sort:
from: new # Sort from new to old, default
# or old # Sort from old to new
Expand All @@ -115,6 +115,8 @@ When `meta_time_format` is set, for all posts with a `time` or `date` metadata,
use this format to parse the that time, and replace the time from git logs. This is
useful to alter specific posts' time where git commit time is not accurate or desired.

[List of datetime placeholders](https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes)

For more about themes and custom templates, see [Themes](theme.md) and [Template](template.md) respectively.

## Publish with Github Pages
Expand Down