diff --git a/.misc/screenshot1.png b/.misc/screenshot1.png index 388a618..011bf82 100644 Binary files a/.misc/screenshot1.png and b/.misc/screenshot1.png differ diff --git a/.misc/screenshot2.png b/.misc/screenshot2.png index 44b8bac..2f3dc3c 100644 Binary files a/.misc/screenshot2.png and b/.misc/screenshot2.png differ diff --git a/main.go b/main.go index cc5defc..0c87e4d 100644 --- a/main.go +++ b/main.go @@ -16,10 +16,11 @@ var appTemplate *template.Template = template.New("app") var db Database type TemplateData struct { - TOC []string - Entry string Title string + SiteDescription string + TOC []string EntryTitle string + Entry string Footer []template.HTML } @@ -42,7 +43,14 @@ func handleApplication(w http.ResponseWriter, req *http.Request) { } err = appTemplate.ExecuteTemplate( w, "app", - TemplateData{TOC: db.Keys, Entry: entry, Title: MainTitle, EntryTitle: entryName, Footer: FooterContent}) + TemplateData{ + TOC: db.Keys, + Entry: entry, + Title: MainTitle, + EntryTitle: entryName, + Footer: FooterContent, + SiteDescription: SiteDescription, + }) if err != nil { logger.Println(err) } } diff --git a/public/index.html b/public/index.html index ffbcc77..3ded2be 100644 --- a/public/index.html +++ b/public/index.html @@ -19,7 +19,10 @@ {{- else -}}