From 54026e89eb9cefeebc97eb16a055d3b9193439a6 Mon Sep 17 00:00:00 2001 From: Matt Stratton Date: Wed, 11 Jan 2017 23:07:30 -0800 Subject: [PATCH] Make map load with data Also changed coordinates for pony events Signed-off-by: Matt Stratton --- exampleSite/data/events/2017-hoofington.yml | 2 +- exampleSite/data/events/2017-ponyville.yml | 2 +- layouts/index.html | 101 +------------------- layouts/partials/map.html | 89 +++++++++++++++++ 4 files changed, 92 insertions(+), 102 deletions(-) create mode 100644 layouts/partials/map.html diff --git a/exampleSite/data/events/2017-hoofington.yml b/exampleSite/data/events/2017-hoofington.yml index bd3828626..f188986f5 100644 --- a/exampleSite/data/events/2017-hoofington.yml +++ b/exampleSite/data/events/2017-hoofington.yml @@ -8,7 +8,7 @@ enddate: 2017-02-01 cfp_date_start: 2016-12-01 cfp_date_end: 2016-12-30 cfp_date_announce: 2017-01-01 -coordinates: "41.882219, -87.640530" +coordinates: "-22.242517, 25.859375" location: "Hoofington Palace" newnav: "yes" # navigationelements: ["welcome", "contact", "location", "program", "propose", "proposals", "conduct", "sponsor"] diff --git a/exampleSite/data/events/2017-ponyville.yml b/exampleSite/data/events/2017-ponyville.yml index bed8df2d6..c6c7147b5 100644 --- a/exampleSite/data/events/2017-ponyville.yml +++ b/exampleSite/data/events/2017-ponyville.yml @@ -8,7 +8,7 @@ enddate: 2017-01-30 cfp_date_start: 2016-12-01 cfp_date_end: 2016-12-30 cfp_date_announce: 2017-01-01 -coordinates: "41.882219, -87.640530" +coordinates: "-43.814067, 170.703125" location: "Applejack House" newnav: "yes" # navigationelements: ["welcome", "contact", "location", "program", "propose", "proposals", "conduct", "sponsor"] diff --git a/layouts/index.html b/layouts/index.html index 096b4390a..cb92a9c94 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -2,106 +2,7 @@
- - - - - - - - - -
-
-
- + {{ partial "map.html" . }}
{{ $.Scratch.Add "i" 1 }} diff --git a/layouts/partials/map.html b/layouts/partials/map.html new file mode 100644 index 000000000..7c4f8cd1b --- /dev/null +++ b/layouts/partials/map.html @@ -0,0 +1,89 @@ + + + + + + + + + +
+
+