mirror of https://github.com/jlelse/GoBlog
Fix
This commit is contained in:
parent
3a866fb3c0
commit
bca9421147
8
posts.go
8
posts.go
|
@ -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,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue