Show blog title and description via Gopher

This commit is contained in:
Matt Baer 2021-04-27 11:39:28 -04:00
parent 7257af2905
commit 02bb5013a7
1 changed files with 5 additions and 0 deletions

View File

@ -106,6 +106,11 @@ func handleGopherCollection(app *App, w gopher.ResponseWriter, r *gopher.Request
}
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)
if err != nil {
return err