Merge commit 'a95896878f4b4a79448b39ce93a4e0d3258b4a43'

This commit is contained in:
Bjørn Erik Pedersen
2018-08-17 10:09:42 +02:00
12 changed files with 61 additions and 249 deletions

View File

@@ -44,6 +44,9 @@ config file(s).
archetypeDir ("archetypes")
: The directory where Hugo finds archetype files (content templates).
assetDir ("assets")
: The directory where Hugo finds asset files used in [Hugo Pipes](/hugo-pipes/).
baseURL
: Hostname (and path) to the root, e.g. http://bep.is/
@@ -320,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"]
```
@@ -330,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.
@@ -347,7 +350,7 @@ An example:
```toml
[frontmatter]
lastmod = ["lastmod" ,":fileModTime", ":default"]
lastmod = ["lastmod", ":fileModTime", ":default"]
```