diff --git a/config/config.go b/config/config.go index 0ee0297..6b20fdf 100644 --- a/config/config.go +++ b/config/config.go @@ -59,14 +59,21 @@ func (*AmCLI) Version() string { // AmConfig holds the configuration of the application as read from YAML. type AmConfig struct { Site struct { - BaseURL string `yaml:"baseURL"` - Title string `yaml:"title"` + BaseURL string `yaml:"baseURL"` + Title string `yaml:"title"` + SiteIcon struct { + Path string `yaml:"path"` + Type string `yaml:"type"` + } `yaml:"siteIcon"` + SiteShortcutIcon string `yaml:"siteShortcutIcon"` + SiteLogo string `yaml:"siteLogo"` TopRefresh int `yaml:"topRefresh"` LoginCookieName string `yaml:"loginCookieName"` LoginCookieAge int `yaml:"loginCookieAge"` SessionExpire string `yaml:"sessionExpire"` UserAgreementResource string `yaml:"userAgreementResource"` PolicyResource string `yaml:"policyResource"` + FooterTemplate string `yaml:"footerTemplate"` } `yaml:"site"` Database struct { Driver string `yaml:"driver"` diff --git a/config/default.yaml b/config/default.yaml index a881c4b..620cb9f 100644 --- a/config/default.yaml +++ b/config/default.yaml @@ -9,12 +9,18 @@ site: baseURL: "http://localhost:1323" title: "Amsterdam Web Communities System" + siteIcon: + path: "/img/builtin/AmsterdamIcon32.png" + type: "image/png" + siteShortcutIcon: "/img/builtin/AmsterdamIcon32.ico" + siteLogo: "/img/builtin/powered-by-amsterdam.png" topRefresh: 300 loginCookieName: AmsterdamAuth loginCookieAge: 365 sessionExpire: "3h" userAgreementResource: "useragreement.html" policyResource: "policy.html" + footerTemplate: "footer.jet" database: driver: "mysql" dsn: "amsdb:x00yes2k@tcp(localhost)/amsterdam?parseTime=true&loc=UTC" diff --git a/ui/views/footer.jet b/ui/views/footer.jet new file mode 100644 index 0000000..1d61fb9 --- /dev/null +++ b/ui/views/footer.jet @@ -0,0 +1,24 @@ +{* + * Amsterdam Web Communities System + * Copyright (c) 2025-2026 Erbosoft Metaverse Design Solutions, All Rights Reserved + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + *} +
+
+
-
+
-
-