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:
spf13
2013-10-25 18:40:55 -04:00
parent 9388f23606
commit d20b41a2cf
3 changed files with 66 additions and 28 deletions

View File

@@ -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