mirror of
https://github.com/gohugoio/hugo.git
synced 2025-05-12 13:47:09 +03:00
More work on indexes
This commit is contained in:
parent
bc7c9221f3
commit
a7dae30a8f
2 changed files with 20 additions and 8 deletions
|
@ -452,7 +452,8 @@ func (s *Site) RenderIndexesIndexes() (err error) {
|
|||
n.Data["Singular"] = singular
|
||||
n.Data["Plural"] = plural
|
||||
n.Data["Index"] = s.Indexes[plural]
|
||||
n.Data["OrderedIndex"] = s.Info.Indexes[plural]
|
||||
// keep the following just for legacy reasons
|
||||
n.Data["OrderedIndex"] = s.Indexes[plural]
|
||||
|
||||
err := s.render(n, plural+"/index.html", layout)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue