Skip to content

Commit

Permalink
Add comma in example config
Browse files Browse the repository at this point in the history
(also make style more consistent with use of commas in a few places)
  • Loading branch information
hipe authored and bep committed Aug 17, 2018
1 parent 1c24f67 commit 9b494a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/en/getting-started/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,8 @@ The default configuration is:

```toml
[frontmatter]
date = ["date","publishDate", "lastmod"]
lastmod = [":git" "lastmod", "date","publishDate"]
date = ["date", "publishDate", "lastmod"]
lastmod = [":git", "lastmod", "date", "publishDate"]
publishDate = ["publishDate", "date"]
expiryDate = ["expiryDate"]
```
Expand All @@ -333,7 +333,7 @@ If you, as an example, have a non-standard date parameter in some of your conten

```toml
[frontmatter]
date = [ "myDate", ":default"]
date = ["myDate", ":default"]
```

The `:default` is a shortcut to the default settings. The above will set `.Date` to the date value in `myDate` if present, if not we will look in `date`,`publishDate`, `lastmod` and pick the first valid date.
Expand All @@ -350,7 +350,7 @@ An example:

```toml
[frontmatter]
lastmod = ["lastmod" ,":fileModTime", ":default"]
lastmod = ["lastmod", ":fileModTime", ":default"]
```


Expand Down

0 comments on commit 9b494a5

Please sign in to comment.