From f556fe5ce7796f268631ac318bdd1752d15e7e3a Mon Sep 17 00:00:00 2001 From: Alyx BB Date: Wed, 12 Jun 2024 04:34:10 +0100 Subject: [PATCH] remove references to google maps --- config.toml.example | 3 +-- structs/config.go | 5 ++--- views/contact.tmpl | 4 ++-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/config.toml.example b/config.toml.example index c2b20d06..8f538f41 100644 --- a/config.toml.example +++ b/config.toml.example @@ -68,8 +68,7 @@ cinPlaylistID = "PLsxUDJzU4VKAAH1pOogbzJx7pZgd-2zOx" channelURL = "//youtube.com/ury1350" - [pageContext.gmaps] - APIKey = "AIzaSyACeeyIgdIhiSxV01OIPiA3MyJDqrOspLQ" + [pageContext.osm] latitude = 53.948193 longitude = -1.054030 diff --git a/structs/config.go b/structs/config.go index fab9f4fa..9b704d97 100644 --- a/structs/config.go +++ b/structs/config.go @@ -50,7 +50,7 @@ type PageContext struct { CacheBuster string `toml:"cacheBuster"` Pages []Page Youtube youtube - Gmaps gmaps + Osm osm CurrentYear int } @@ -99,8 +99,7 @@ type youtube struct { ChannelURL string `toml:"channelURL"` } -type gmaps struct { - APIKey string `toml:"apiKey"` +type osm struct { Lat float32 `toml:"latitude"` Lng float32 `toml:"longitude"` } diff --git a/views/contact.tmpl b/views/contact.tmpl index 0a9c90ef..d7e63264 100644 --- a/views/contact.tmpl +++ b/views/contact.tmpl @@ -145,8 +145,8 @@