mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-20 04:12:03 +00:00
Remove Authors.Sort
We may add it again in the future, but let us try to keep the API as small as possible for now. See #1850
This commit is contained in:
parent
cf978c0649
commit
51c9bfbc9e
1 changed files with 0 additions and 6 deletions
|
@ -39,12 +39,6 @@ func (a Authors) Get(id string) Author {
|
||||||
return Author{}
|
return Author{}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sort sorts the authors by weight
|
|
||||||
func (a Authors) Sort() Authors {
|
|
||||||
sort.Stable(a)
|
|
||||||
return a
|
|
||||||
}
|
|
||||||
|
|
||||||
// Author contains details about the author of a page.
|
// Author contains details about the author of a page.
|
||||||
type Author struct {
|
type Author struct {
|
||||||
ID string
|
ID string
|
||||||
|
|
Loading…
Reference in a new issue