summaryrefslogtreecommitdiffstats
path: root/hugolib/pageSort.go
diff options
context:
space:
mode:
authorJohn Feminella <jxf+github@jxf.me>2017-02-19 02:50:08 -0500
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-02-19 08:50:08 +0100
commitb2e3748a4e148a9624b9906bd8f34a238a54429c (patch)
treef29cb748dab294a8a1880495f0dffed5bcf229bc /hugolib/pageSort.go
parent6d2281c8ead70ac07122027c989807c0aa1a7722 (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.go3
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()