summaryrefslogtreecommitdiffstats
path: root/hugolib/taxonomy.go
diff options
context:
space:
mode:
authorspf13 <steve.francia@gmail.com>2014-08-29 23:44:39 -0400
committerspf13 <steve.francia@gmail.com>2014-08-29 23:44:39 -0400
commit70dc370c08cced68b10b46bd4a48194013536934 (patch)
tree7bbd445f45014e9a8b2abc0a9fd552918e420bd3 /hugolib/taxonomy.go
parent01caaeba7ab73b365eb0a9e9285a1f779ef28a11 (diff)
Making the term "Term" more consistent with Taxonomy usage.
Diffstat (limited to 'hugolib/taxonomy.go')
-rw-r--r--hugolib/taxonomy.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/hugolib/taxonomy.go b/hugolib/taxonomy.go
index 539e2a1bb..890bd550c 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
*/