mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
Big index overhaul. Now supporting ordering tokens by count or alphabetically. Also made full indexes available to the Site variable.
This commit is contained in:
@@ -73,7 +73,7 @@ type Site struct {
|
||||
|
||||
type SiteInfo struct {
|
||||
BaseUrl template.URL
|
||||
Indexes OrderedIndexList
|
||||
Indexes IndexList
|
||||
Recent *Pages
|
||||
LastChange time.Time
|
||||
Title string
|
||||
@@ -330,7 +330,7 @@ func (s *Site) BuildSiteMeta() (err error) {
|
||||
s.Sections[k].Sort()
|
||||
}
|
||||
|
||||
s.Info.Indexes = s.Indexes.BuildOrderedIndexList()
|
||||
s.Info.Indexes = s.Indexes
|
||||
|
||||
if len(s.Pages) == 0 {
|
||||
return
|
||||
|
Reference in New Issue
Block a user