1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-14 16:26:23 -07:00

Add modifyable title for mgmt pages

This commit is contained in:
Eggbertx 2022-01-29 20:46:00 -08:00
parent d1ae92b01c
commit 33388612d7
4 changed files with 15 additions and 7 deletions

View file

@ -100,9 +100,10 @@ func BuildBoardListJSON() error {
// BuildPageHeader is a convenience function for automatically generating the top part
// of every normal HTML page
func BuildPageHeader(writer io.Writer) error {
func BuildPageHeader(writer io.Writer, pageTitle string) error {
return serverutil.MinifyTemplate(gctemplates.PageHeader,
map[string]interface{}{
"page_title": pageTitle,
"webroot": config.GetSystemCriticalConfig().WebRoot,
"site_config": config.GetSiteConfig(),
"sections": gcsql.AllSections,