Skip to content

Commit

Permalink
Merge pull request #62 from kakawait/bugfix/documentation-date-format
Browse files Browse the repository at this point in the history
Fix dateformat on documentation
  • Loading branch information
kakawait authored Nov 21, 2016
2 parents a611395 + fd8359a commit 6da8b9a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions docs/user.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,16 +159,16 @@ Modify the theme in `config.{toml,yml,json}` by changing `theme` variable to `tr

### Define date format

By default date will be printed like following: `mmmm d, yyyy`, example: "January 1, 2006"
By default date will be printed like following: `mmmm d, yyyy`, example: "January 2, 2006"

You can customize it by setting

```toml
[params]
dateFormat = "1 January 2006"
dateFormat = "2 January 2006"
```

Will produce: "1 January 2006"
Will produce: "2 January 2006"

ATTENTION: date format should respect `go` `Time` package syntax, please refer to https://golang.org/pkg/time/

Expand All @@ -180,7 +180,7 @@ Example:
defaultContentLanguage = "fr-fr"
```

"1 January 2006" will be output "1 Janvier 2006".
"21 July 2006" will be output "21 Juillet 2006".

### Define global keywords

Expand Down
4 changes: 2 additions & 2 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ defaultContentLanguage = "en-us"
# Customize date format use to render blog post date, categories and other
# You must use date format used by Go Time package https://golang.org/pkg/time/
# Months (not work with short month like "jan", "feb", etc) are translated if translation exists on i18n folders
# Default format is: January 1, 2006
# dateFormat = "1 January 2006"
# Default format is: January 2, 2006
# dateFormat = "2 January 2006"

# Global keywords configuration. Following keywords will be add to every pages
# keywords = ["development", "next-gen"]
Expand Down

0 comments on commit 6da8b9a

Please sign in to comment.