diff --git a/handlers/pageData.go b/handlers/pageData.go index 5206ccde..804b76e3 100644 --- a/handlers/pageData.go +++ b/handlers/pageData.go @@ -49,6 +49,7 @@ func InitPageData(w http.ResponseWriter, r *http.Request, active, path, title st Year: time.Now().UTC().Year(), ExplorerTitle: utils.Config.Frontend.SiteName, ExplorerSubtitle: utils.Config.Frontend.SiteSubtitle, + ExplorerLogo: utils.Config.Frontend.SiteLogo, ChainSlotsPerEpoch: utils.Config.Chain.Config.SlotsPerEpoch, ChainSecondsPerSlot: utils.Config.Chain.Config.SecondsPerSlot, ChainGenesisTimestamp: utils.Config.Chain.GenesisTimestamp, @@ -60,6 +61,10 @@ func InitPageData(w http.ResponseWriter, r *http.Request, active, path, title st MainMenuItems: createMenuItems(active, isMainnet), } + if utils.Config.Frontend.SiteDescription != "" { + data.Meta.Description = utils.Config.Frontend.SiteDescription + } + acceptedLangs := strings.Split(r.Header.Get("Accept-Language"), ",") if len(acceptedLangs) > 0 { if strings.Contains(acceptedLangs[0], "ru") || strings.Contains(acceptedLangs[0], "RU") { diff --git a/templates/_layout/header.html b/templates/_layout/header.html index a349b806..f67d2a15 100644 --- a/templates/_layout/header.html +++ b/templates/_layout/header.html @@ -22,9 +22,13 @@