projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01caaeb
)
Making the term "Term" more consistent with Taxonomy usage.
author
spf13
<steve.francia@gmail.com>
Sat, 30 Aug 2014 03:44:39 +0000
(23:44 -0400)
committer
spf13
<steve.francia@gmail.com>
Sat, 30 Aug 2014 03:44:39 +0000
(23:44 -0400)
hugolib/taxonomy.go
patch
|
blob
|
history
diff --git
a/hugolib/taxonomy.go
b/hugolib/taxonomy.go
index 539e2a1bbba830d43de8d9580e84dfb72af23ffc..890bd550c1ef68c5e6ba8bc0900652ea08896f9b 100644
(file)
--- 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
*/