diff options
author | John Feminella <jxf+github@jxf.me> | 2017-02-19 02:50:08 -0500 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-02-19 08:50:08 +0100 |
commit | b2e3748a4e148a9624b9906bd8f34a238a54429c (patch) | |
tree | f29cb748dab294a8a1880495f0dffed5bcf229bc /hugolib/pageSort.go | |
parent | 6d2281c8ead70ac07122027c989807c0aa1a7722 (diff) |
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
Diffstat (limited to 'hugolib/pageSort.go')
-rw-r--r-- | hugolib/pageSort.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hugolib/pageSort.go b/hugolib/pageSort.go index e1ea786b6..6d2431cec 100644 --- a/hugolib/pageSort.go +++ b/hugolib/pageSort.go @@ -14,9 +14,8 @@ package hugolib import ( - "sort" - "github.com/spf13/cast" + "sort" ) var spc = newPageCache() |