Skip to content

Commit c9d7f23

Browse files
committed
feat: Add Header
1 parent cff04c6 commit c9d7f23

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ ui:
6565
graphs:
6666
# The maximum number of data points to display on the graph (default: 200)
6767
points: 200
68+
header:
69+
# Enable the Page header
70+
enabled: false
71+
# Logo URL to display in the header
72+
logo: https://raw.githubusercontent.com/henrywhitaker3/prompage/refs/heads/main/internal/resources/static/icon.png
6873
```
6974
7075
## Installation

internal/config/config.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ func setDefaults(conf *Config) {
159159
if conf.UI.Theme == "" {
160160
conf.UI.Theme = "light"
161161
}
162+
if conf.UI.Header.Logo == "" {
163+
conf.UI.Header.Logo = "https://raw.githubusercontent.com/henrywhitaker3/prompage/refs/heads/main/internal/resources/static/icon.png"
164+
}
162165
}
163166

164167
func setDefaultQueryValues(q *Query) {

0 commit comments

Comments
 (0)