diff options
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 |
