mirror of https://github.com/jlelse/GoBlog
Fix paths
This commit is contained in:
parent
a1cf7ff71f
commit
fc6c883eca
6
posts.go
6
posts.go
|
@ -252,9 +252,9 @@ func serveIndex(ic *indexConfig) func(w http.ResponseWriter, r *http.Request) {
|
|||
"Posts": posts,
|
||||
"HasPrev": hasPrev,
|
||||
"HasNext": hasNext,
|
||||
"First": appConfig.Server.PublicAddress + path,
|
||||
"Prev": appConfig.Server.PublicAddress + prevPath,
|
||||
"Next": appConfig.Server.PublicAddress + nextPath,
|
||||
"First": slashIfEmpty(path),
|
||||
"Prev": slashIfEmpty(prevPath),
|
||||
"Next": slashIfEmpty(nextPath),
|
||||
"SummaryTemplate": summaryTemplate,
|
||||
},
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue