hugolib: Enhance `.Param` to permit arbitrarily nested parameter references
authorJohn Feminella <jxf+github@jxf.me>
Sun, 19 Feb 2017 07:50:08 +0000 (02:50 -0500)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 19 Feb 2017 07:50:08 +0000 (08:50 +0100)
commitb2e3748a4e148a9624b9906bd8f34a238a54429c
treef29cb748dab294a8a1880495f0dffed5bcf229bc
parent6d2281c8ead70ac07122027c989807c0aa1a7722
hugolib: Enhance `.Param` to permit arbitrarily nested parameter references

The Param method currently assumes that its argument is a single,
distinct, top-level key to look up in the Params map. This enhances the
Param method; it will now also attempt to see if the key can be
interpreted as a nested chain of keys to look up in Params.

Fixes #2598
docs/content/templates/list.md
docs/content/templates/variables.md
hugolib/page.go
hugolib/pageSort.go
hugolib/pageSort_test.go
hugolib/page_test.go