diff options
author | Bing-Sheng Chen <gundamew@gmail.com> | 2019-08-19 12:29:20 +0300 |
---|---|---|
committer | Bing-Sheng Chen <gundamew@gmail.com> | 2019-08-19 12:47:08 +0300 |
commit | ea9283f49a4d852127d013c9d25b962f7f7f4528 (patch) | |
tree | edc8478ab24a62cd52d2a365c20a9ecb8d174944 /exampleSite | |
parent | 8781ae895fd989e05545ae6f3708724d275bba07 (diff) |
feat(layouts): Replace `.Pages` or `.Data.Pages` with `.Site.RegularPages`v1.7.0
Replace `.Pages` or `.Data.Pages` with `.Site.RegularPages`. And add
`mainSections` variable to config file to prepare for Hugo v.0.58.0.
See also:
* https://github.com/gohugoio/hugoThemes/issues/682
* https://gohugo.io/functions/where/#mainsections
Diffstat (limited to 'exampleSite')
-rw-r--r-- | exampleSite/config.toml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 260395d..4008004 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -31,6 +31,7 @@ disableKinds = ["taxonomy", "taxonomyTerm", "RSS", "sitemap", "robotsTXT"] [params] dateFormat = "2006-01-02" + mainSections = ["post"] [params.gravatar] email = "hugo@example.com" |