Add comma in example config

(also make style more consistent with use of commas in a few places)
This commit is contained in:
Mark Meves 2018-08-17 02:25:54 -04:00 committed by Bjørn Erik Pedersen
parent 1c24f672dc
commit 9b494a58cd

View File

@ -323,8 +323,8 @@ The default configuration is:
```toml ```toml
[frontmatter] [frontmatter]
date = ["date","publishDate", "lastmod"] date = ["date", "publishDate", "lastmod"]
lastmod = [":git" "lastmod", "date","publishDate"] lastmod = [":git", "lastmod", "date", "publishDate"]
publishDate = ["publishDate", "date"] publishDate = ["publishDate", "date"]
expiryDate = ["expiryDate"] expiryDate = ["expiryDate"]
``` ```
@ -333,7 +333,7 @@ If you, as an example, have a non-standard date parameter in some of your conten
```toml ```toml
[frontmatter] [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. 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.
@ -350,7 +350,7 @@ An example:
```toml ```toml
[frontmatter] [frontmatter]
lastmod = ["lastmod" ,":fileModTime", ":default"] lastmod = ["lastmod", ":fileModTime", ":default"]
``` ```