This commit is contained in:
Jan-Lukas Else 2020-11-17 14:52:17 +01:00
parent 3a866fb3c0
commit bca9421147
1 changed files with 4 additions and 4 deletions

View File

@ -236,16 +236,16 @@ func serveIndex(ic *indexConfig) func(w http.ResponseWriter, r *http.Request) {
} }
render(w, templateIndex, &renderData{ render(w, templateIndex, &renderData{
blogString: ic.blog, blogString: ic.blog,
Canonical: appConfig.Server.PublicAddress + getBlogRelativePath(ic.blog, path), Canonical: appConfig.Server.PublicAddress + path,
Data: map[string]interface{}{ Data: map[string]interface{}{
"Title": title, "Title": title,
"Description": description, "Description": description,
"Posts": posts, "Posts": posts,
"HasPrev": p.HasPrev(), "HasPrev": p.HasPrev(),
"HasNext": p.HasNext(), "HasNext": p.HasNext(),
"First": getBlogRelativePath(ic.blog, path), "First": path,
"Prev": getBlogRelativePath(ic.blog, prevPath), "Prev": prevPath,
"Next": getBlogRelativePath(ic.blog, nextPath), "Next": nextPath,
"SummaryTemplate": summaryTemplate, "SummaryTemplate": summaryTemplate,
}, },
}) })