Skip to content

Commit 95e3d79

Browse files
committed
add live map api to config
1 parent 44f902e commit 95e3d79

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

_config.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ description: >- # this means to ignore newlines until "baseurl:"
66
baseurl: "/" # the subpath of your site, e.g. /blog
77
url: "https://remotehack.space" # the base hostname & protocol for your site, e.g. http://example.com
88
discord_invite_url: https://discord.gg/wNq8uVvQT3
9-
10-
9+
live_map_api: https://remotehack-livemap-api.jakew.workers.dev
1110

1211
# Build settings
1312
plugins:
1413
- jekyll-redirect-from
1514
- jekyll-sitemap
16-
15+
1716
timezone: Europe/London
1817

1918
# To ensure that events in the future generate their html pages

_includes/livemap.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
</p>
44
<div id="map-container"></div>
55
<div id="map-tooltip" class="tooltip"></div>
6+
<p>Join the Discord to add yourself to the map</p>
67

78
<script type="module">
89
import * as d3 from "https://cdn.jsdelivr.net/npm/d3@v7/+esm";
@@ -21,7 +22,7 @@
2122

2223
// grab the data
2324
Promise.all([
24-
d3.json("http://localhost:8787/locations.geojson"),
25+
d3.json("{{ site.live_map_api }}/locations.geojson"),
2526
d3.json("https://raw.githubusercontent.com/holtzy/D3-graph-gallery/master/DATA/world.geojson")
2627
]).then(([pointData, worldData]) => {
2728
// update map text

0 commit comments

Comments
 (0)