diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-02 18:53:56 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-02 18:53:56 +0200 |
| commit | f6c7a85ca04b9285677227d66205856c31a7d364 (patch) | |
| tree | a343eacc23b8cbd7013fcf7318258ad657962867 /backend/data.go | |
| parent | cc2f31d6d5f47472e7162c9aec605587f0abaad8 (diff) | |
feat(backend): config header links
Diffstat (limited to 'backend/data.go')
| -rw-r--r-- | backend/data.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/data.go b/backend/data.go index fd05fa9..85e8681 100644 --- a/backend/data.go +++ b/backend/data.go @@ -15,6 +15,7 @@ type data struct { Image string Description string Name string + Links []Link } func (d *data) handleGeneric(w http.ResponseWriter, r *http.Request, name string) { @@ -28,6 +29,9 @@ func (d *data) handleGeneric(w http.ResponseWriter, r *http.Request, name string if d.Description == "" { d.Description = cfg.Description } + if d.Links == nil { + d.Links = cfg.Links + } if d.URL == "" { if !strings.HasPrefix(r.URL.Path, "/") { r.URL.Path = "/" + r.URL.Path |
