diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-05-04 19:14:43 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-05-09 23:58:25 +0200 |
commit | ebf677a58360126d8b9a1e98d086aa4279f53181 (patch) | |
tree | 835e69006426be8fc2702f238887dc321dff1f5a /hugolib | |
parent | 58d9cbd31bcf7c296a39860fd7e566d10faaff28 (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.go | 2 |
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 { |