Added a footer, added the main title to the home page, minor improvements

This commit is contained in:
ChaoticByte 2024-08-29 13:10:23 +02:00
parent 1aa58ac243
commit b86b1688ea
No known key found for this signature in database
6 changed files with 40 additions and 4 deletions

View file

@ -20,6 +20,7 @@ type TemplateData struct {
Entry string
Title string
EntryTitle string
Footer []template.HTML
}
func loadTemplate() {
@ -41,7 +42,7 @@ func handleApplication(w http.ResponseWriter, req *http.Request) {
}
err = appTemplate.ExecuteTemplate(
w, "app",
TemplateData{TOC: db.Keys, Entry: entry, Title: MainTitle, EntryTitle: entryName})
TemplateData{TOC: db.Keys, Entry: entry, Title: MainTitle, EntryTitle: entryName, Footer: FooterContent})
if err != nil { logger.Println(err) }
}