From: spf13 Date: Sat, 30 Aug 2014 03:44:39 +0000 (-0400) Subject: Making the term "Term" more consistent with Taxonomy usage. X-Git-Tag: v0.12~15 X-Git-Url: http://git.maquefel.me//?a=commitdiff_plain;h=70dc370c08cced68b10b46bd4a48194013536934;p=brevno-suite%2Fhugo Making the term "Term" more consistent with Taxonomy usage. --- diff --git a/hugolib/taxonomy.go b/hugolib/taxonomy.go index 539e2a1b..890bd550 100644 --- a/hugolib/taxonomy.go +++ b/hugolib/taxonomy.go @@ -112,6 +112,10 @@ func (ie OrderedTaxonomyEntry) Count() int { return len(ie.WeightedPages) } +func (ie OrderedTaxonomyEntry) Term() string { + return ie.Name +} + /* * Implementation of a custom sorter for OrderedTaxonomies */