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:
parent
d1ae92b01c
commit
33388612d7
4 changed files with 15 additions and 7 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue