From: spf13 Date: Sat, 30 Aug 2014 03:43:38 +0000 (-0400) Subject: Making the Pages Sorting methods available within a taxonomy term. X-Git-Tag: v0.12~16 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=01caaeba7ab73b365eb0a9e9285a1f779ef28a11;p=brevno-suite%2Fhugo Making the Pages Sorting methods available within a taxonomy term. --- diff --git a/hugolib/taxonomy.go b/hugolib/taxonomy.go index 6939e076..539e2a1b 100644 --- a/hugolib/taxonomy.go +++ b/hugolib/taxonomy.go @@ -104,7 +104,7 @@ func (i Taxonomy) ByCount() OrderedTaxonomy { } // Helper to move the page access up a level -func (ie OrderedTaxonomyEntry) Pages() []*Page { +func (ie OrderedTaxonomyEntry) Pages() Pages { return ie.WeightedPages.Pages() }