Added a footer, added the main title to the home page, minor improvements
This commit is contained in:
parent
1aa58ac243
commit
b86b1688ea
6 changed files with 40 additions and 4 deletions
3
main.go
3
main.go
|
|
@ -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) }
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue