summaryrefslogtreecommitdiffstats
path: root/hugolib
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-05-04 19:14:43 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-05-09 23:58:25 +0200
commitebf677a58360126d8b9a1e98d086aa4279f53181 (patch)
tree835e69006426be8fc2702f238887dc321dff1f5a /hugolib
parent58d9cbd31bcf7c296a39860fd7e566d10faaff28 (diff)
hubolib: Embed Page in WeightedPage
People can still say `.Page`, but by embedding it `WeightedPages` can be used interchangeably with `Pages` in templates. Fixes #3435
Diffstat (limited to 'hugolib')
-rw-r--r--hugolib/taxonomy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/taxonomy.go b/hugolib/taxonomy.go
index 5faf14d0f..35e0795e5 100644
--- a/hugolib/taxonomy.go
+++ b/hugolib/taxonomy.go
@@ -39,7 +39,7 @@ type WeightedPages []WeightedPage
// A WeightedPage is a Page with a weight.
type WeightedPage struct {
Weight int
- Page *Page
+ *Page
}
func (w WeightedPage) String() string {