Skip to content

Commit

Permalink
Updated docs/_layouts/default.html
Browse files Browse the repository at this point in the history
  • Loading branch information
tristen committed Sep 11, 2014
1 parent 6941069 commit 8fcfb9d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,16 @@
</script>
<script src='{% if site.mapboxjsbase %}{{site.mapboxjsbase}}{% else %}https://api.tiles.mapbox.com/mapbox.js/{% if site.mapboxjs %}{{site.mapboxjs}}{% else %}v1.6.1{% endif %}{% endif %}/mapbox.js'></script>

<script src='{{site.url}}/js/api.js'></script>
<script>
window.mapbox_api = '{{site.api}}';
window.mapbox_tileApi = '{{site.tileApi}}';
window.mapbox_accessToken = '{{site.accessToken}}' || 'pk.eyJ1IjoibWFwYm94IiwiYSI6IlhHVkZmaW8ifQ.hAMX5hSW-QnTeRCMAy9A8Q'
if (L.mapbox.VERSION[0] === '2') {
L.mapbox.accessToken = window.mapbox_accessToken;
L.mapbox.config.FORCE_HTTPS = true;
L.mapbox.config.HTTPS_URL = window.mapbox_tileApi + '/v4';
}
</script>
<script src='https://www.mapbox.com/base.js/dist/base.js'></script>
{% if site.test %}<script src='{{site.url}}/test/tape.js'></script>{% endif %}
{% if page.head %}{{page.head}}{% endif %}
Expand Down

0 comments on commit 8fcfb9d

Please sign in to comment.