Show blog title and description via Gopher
This commit is contained in:
parent
7257af2905
commit
02bb5013a7
1 changed files with 5 additions and 0 deletions
|
@ -106,6 +106,11 @@ func handleGopherCollection(app *App, w gopher.ResponseWriter, r *gopher.Request
|
||||||
}
|
}
|
||||||
c.hostName = app.cfg.App.Host
|
c.hostName = app.cfg.App.Host
|
||||||
|
|
||||||
|
w.WriteInfo(c.DisplayTitle())
|
||||||
|
if c.Description != "" {
|
||||||
|
w.WriteInfo(c.Description)
|
||||||
|
}
|
||||||
|
|
||||||
posts, err := app.db.GetPosts(app.cfg, c, 0, false, false, false)
|
posts, err := app.db.GetPosts(app.cfg, c, 0, false, false, false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Add table
Reference in a new issue