From 02bb5013a7aac32b4c05dce33c43456e76a3bc86 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Tue, 27 Apr 2021 11:39:28 -0400 Subject: [PATCH] Show blog title and description via Gopher --- gopher.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gopher.go b/gopher.go index 4173fb0..f87d85c 100644 --- a/gopher.go +++ b/gopher.go @@ -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