added Apple site icon configuration and frame - closes issue #5

This commit is contained in:
2026-04-21 16:30:40 -05:00
parent 17de55c5c2
commit 57088e4680
5 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -6,4 +6,4 @@ __debug_bin*
/test*.yaml /test*.yaml
# Ignore mac-specific files # Ignore mac-specific files
/.DS_Store .DS_Store
+1
View File
@@ -92,6 +92,7 @@ type AmConfig struct {
Type string `yaml:"type"` Type string `yaml:"type"`
} `yaml:"siteIcon"` } `yaml:"siteIcon"`
SiteShortcutIcon string `yaml:"siteShortcutIcon"` SiteShortcutIcon string `yaml:"siteShortcutIcon"`
SiteAppleIcon string `yaml:"siteAppleIcon"`
SiteLogo string `yaml:"siteLogo"` SiteLogo string `yaml:"siteLogo"`
TopRefresh int `yaml:"topRefresh"` TopRefresh int `yaml:"topRefresh"`
LoginCookieName string `yaml:"loginCookieName"` LoginCookieName string `yaml:"loginCookieName"`
+1
View File
@@ -17,6 +17,7 @@ site:
path: "/img/builtin/AmsterdamIcon32.png" path: "/img/builtin/AmsterdamIcon32.png"
type: "image/png" type: "image/png"
siteShortcutIcon: "/img/builtin/AmsterdamIcon32.ico" siteShortcutIcon: "/img/builtin/AmsterdamIcon32.ico"
siteAppleIcon: "/img/builtin/AmsterdamAppleIcon.png"
siteLogo: "/img/builtin/powered-by-amsterdam.png" siteLogo: "/img/builtin/powered-by-amsterdam.png"
topRefresh: 300 topRefresh: 300
loginCookieName: AmsterdamAuth loginCookieName: AmsterdamAuth
Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

+1
View File
@@ -17,6 +17,7 @@
<title>{{ .FrameTitle() | raw }} - {{ GlobalConfig.Site.Title }}</title> <title>{{ .FrameTitle() | raw }} - {{ GlobalConfig.Site.Title }}</title>
<link rel="icon" href="{{ GlobalConfig.Site.SiteIcon.Path }}" type="{{ GlobalConfig.Site.SiteIcon.Type }}" /> <link rel="icon" href="{{ GlobalConfig.Site.SiteIcon.Path }}" type="{{ GlobalConfig.Site.SiteIcon.Type }}" />
<link rel="shortcut icon" href="{{ GlobalConfig.Site.SiteShortcutIcon }}" /> <link rel="shortcut icon" href="{{ GlobalConfig.Site.SiteShortcutIcon }}" />
<link rel="apple-touch-icon" href="{{ GlobalConfig.Site.SiteAppleIcon }}" />
{{ range k, v := .FrameMetadata(0) }} {{ range k, v := .FrameMetadata(0) }}
<meta http-equiv="{{ k }}" content="{{ v }}"> <meta http-equiv="{{ k }}" content="{{ v }}">
{{ end }} {{ end }}