I you define a param “myParam” in both site config and in /mysection/_index.md, then:
- From the section listing template:
.Param "myParam"
will return the value from /mysection/_index.md - From a single page template inside /mysection:
.Param "myParam"
will return value from site config - If you want to, say, get the behaviour from the first example in the home page template, you can do `.Site.GetPage(“section”, “mysection”).Param “myParam”````
.Site.GetPage
doesn’t do any caching at the moment, so if used too much, it may hurt performance (we will fix that)(you may also want to pull it out into a variable if you need more than one param), but the above should work.