Permalink
Browse files

indexes rss and canonical URL's were incorrect.

  • Loading branch information...
jcdny committed Feb 5, 2014
1 parent b74a492 commit 836cf46168b610ed1f2f0857b3eb989e59f00d78
Showing with 3 additions and 3 deletions.
  1. +3 −3 hugolib/site.go
@@ -420,9 +420,9 @@ func (s *Site) RenderIndexes() error {
n.Title = strings.Title(k)
url := helpers.Urlize(plural + "/" + k)
n.Url = url + ".html"
plink := n.Url
plink := url + "/"
n.Permalink = permalink(s, plink)
n.RSSLink = permalink(s, url+".xml")
n.RSSLink = permalink(s, url+"/index.xml")
n.Date = o[0].Page.Date
n.Data[singular] = o
n.Data["Pages"] = o.Pages()
@@ -479,7 +479,7 @@ func (s *Site) RenderLists() error {
n.Title = strings.Title(inflect.Pluralize(section))
n.Url = helpers.Urlize(section + "/" + "index.html")
n.Permalink = permalink(s, n.Url)
n.RSSLink = permalink(s, section+".xml")
n.RSSLink = permalink(s, section+"/"+"index.xml")
n.Date = data[0].Page.Date
n.Data["Pages"] = data.Pages()
layout := "indexes/" + section + ".html"

0 comments on commit 836cf46

Please sign in to comment.