What is honk?
-Honk is amazing! +{{ .AboutMsg }}
diff --git a/docs/honk.8 b/docs/honk.8 index 92b8ca7..6d69578 100644 --- a/docs/honk.8 +++ b/docs/honk.8 @@ -81,14 +81,12 @@ Site CSS may be overridden by creating a .Pa views/local.css file. .Pp -A custom message me be set by editing the database. +Custom messages may be set by editing the database. (Sorry.) .Dl insert into config values ('servermsg', 'message'); +.Dl insert into config values ('aboutmsg', 'message'); +.Dl insert into config values ('loginmsg', 'message'); .Pp -The -.Pa views/about.html -page doesn't change too frequently. -It should be safe to edit. .Ss ADMIN New users can be added with the .Ic adduser diff --git a/honk.go b/honk.go index 09cfada..1bd6da0 100644 --- a/honk.go +++ b/honk.go @@ -137,7 +137,9 @@ type Honker struct { var serverName string var iconName = "icon.png" -var serverMsg = "Things happen." +var serverMsg = template.HTML(`
Honk is amazing!`) +var loginMsg = template.HTML(`
Honk is amazing! +{{ .AboutMsg }}