File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232 uses : actions/configure-pages@v5
3333 - name : Build with Jekyll
3434 uses : actions/jekyll-build-pages@v1
35+ env :
36+ MAPBOX_API : ${{ secrets.MAPBOX_API }}
3537 with :
3638 source : ./
3739 destination : ./_site
Original file line number Diff line number Diff line change 1+ MAPBOX_API :
Original file line number Diff line number Diff line change 11# from my digging the github action uses jekyll 3.9.5 but that doesn't exist on dhub...
22# https://github.com/jekyll/jekyll/issues/9066 - issue with webrick gem - downgrade version
33FROM jekyll/jekyll:3.8.5
4- CMD jekyll serve --force_polling --drafts
4+ CMD jekyll serve --force_polling --drafts --config _config.yml
Original file line number Diff line number Diff line change 1+ -- -
2+ -- -
13import { toggleSidebar } from './bind-elements.js' ;
24import testMobile from './util/test-mobile.util.js' ;
35
4- mapboxgl . accessToken =
5- 'pk.eyJ1IjoiZm12YWxkZXpnODQiLCJhIjoiY2xqajJzZXZ2MDU3ZTNybHBrdHo4OWo4aSJ9.ENnejUYGtJT-74gG0opSQA' ;
6+ // Get current env and load mapbox key
7+ const MAPBOX_API = "{{ site.MAPBOX_API }}"
8+ mapboxgl . accessToken = MAPBOX_API ;
69
710// Default values for map center and zoom
811// Set distinct map center/zoom via query parameter
You can’t perform that action at this time.
0 commit comments