mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02: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:
@@ -39,12 +39,6 @@ func (a Authors) Get(id string) 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.
|
||||
type Author struct {
|
||||
ID string
|
||||
|
Reference in New Issue
Block a user