added variables for the top page content

This commit is contained in:
2026-03-05 22:38:19 -07:00
parent 5f67d8ce16
commit a1c4b750fb
3 changed files with 11 additions and 5 deletions
+3
View File
@@ -88,6 +88,9 @@ type AmConfig struct {
FooterTemplate string `yaml:"footerTemplate"`
DefaultCommunityLogo string `yaml:"defaultCommunityLogo"`
DefaultUserPhoto string `yaml:"defaultUserPhoto"`
WelcomeTitle string `yaml:"welcomeTitle"`
WelcomeMessage string `yaml:"welcomeMessage"`
TopPostsTitle string `yaml:"topPostsTitle"`
} `yaml:"site"`
Database struct {
Driver string `yaml:"driver"`
+5
View File
@@ -25,6 +25,11 @@ site:
footerTemplate: "footer.jet"
defaultCommunityLogo: "/img/builtin/default-community.jpg"
defaultUserPhoto: "/img/builtin/no-user.png"
welcomeTitle: "Welcome to Amsterdam"
welcomeMessage: >
Welcome to the <strong>Amsterdam Web Communities System</strong>. To get the most out of this site, you should log in or create an account,
using one of the links above.
topPostsTitle: "Latest from the Conferences"
database:
driver: "mysql"
dsn: "amsdb:x00yes2k@tcp(localhost)/amsterdam?parseTime=true&loc=UTC"