refactor: use .Params.mainSections to filter posts
It's recommended by Hugo's official doc: https://gohugo.io/functions/where/#mainsections
This commit is contained in:
@@ -9,7 +9,7 @@ title = "Example Site"
|
||||
page = "/:slug/"
|
||||
|
||||
[params]
|
||||
postSection = "post"
|
||||
mainSections = ["post"]
|
||||
favicon = ""
|
||||
[params.sidebar]
|
||||
emoji = "🍥"
|
||||
|
||||
Reference in New Issue
Block a user