Making the term "Term" more consistent with Taxonomy usage.
authorspf13 <steve.francia@gmail.com>
Sat, 30 Aug 2014 03:44:39 +0000 (23:44 -0400)
committerspf13 <steve.francia@gmail.com>
Sat, 30 Aug 2014 03:44:39 +0000 (23:44 -0400)
hugolib/taxonomy.go

index 539e2a1bbba830d43de8d9580e84dfb72af23ffc..890bd550c1ef68c5e6ba8bc0900652ea08896f9b 100644 (file)
@@ -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
  */