|
|
@ -127,7 +127,7 @@ func (a *api) getPostsHandler() http.Handler { |
|
|
|
|
|
|
|
|
|
|
|
tpl := a.mustParseBasedTpl("posts.html") |
|
|
|
tpl := a.mustParseBasedTpl("posts.html") |
|
|
|
getPostHandler := a.getPostHandler() |
|
|
|
getPostHandler := a.getPostHandler() |
|
|
|
const pageCount = 10 |
|
|
|
const pageCount = 20 |
|
|
|
|
|
|
|
|
|
|
|
return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) { |
|
|
|
return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) { |
|
|
|
|
|
|
|
|
|
|
|