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,
|
"Posts": posts,
|
||||||
"HasPrev": hasPrev,
|
"HasPrev": hasPrev,
|
||||||
"HasNext": hasNext,
|
"HasNext": hasNext,
|
||||||
"First": appConfig.Server.PublicAddress + path,
|
"First": slashIfEmpty(path),
|
||||||
"Prev": appConfig.Server.PublicAddress + prevPath,
|
"Prev": slashIfEmpty(prevPath),
|
||||||
"Next": appConfig.Server.PublicAddress + nextPath,
|
"Next": slashIfEmpty(nextPath),
|
||||||
"SummaryTemplate": summaryTemplate,
|
"SummaryTemplate": summaryTemplate,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue