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{
blogString: ic.blog,
Canonical: appConfig.Server.PublicAddress + getBlogRelativePath(ic.blog, path),
Canonical: appConfig.Server.PublicAddress + path,
Data: map[string]interface{}{
"Title": title,
"Description": description,
"Posts": posts,
"HasPrev": p.HasPrev(),
"HasNext": p.HasNext(),
"First": getBlogRelativePath(ic.blog, path),
"Prev": getBlogRelativePath(ic.blog, prevPath),
"Next": getBlogRelativePath(ic.blog, nextPath),
"First": path,
"Prev": prevPath,
"Next": nextPath,
"SummaryTemplate": summaryTemplate,
},
})