Skip to content

Commit 6b00f6a

Browse files
author
Lucas Wojciechowski
committed
Merge remote-tracking branch 'origin/mb-pages'
2 parents 9f7e84c + 7a70603 commit 6b00f6a

File tree

5 files changed

+16
-20
lines changed

5 files changed

+16
-20
lines changed

_config.mb-pages.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ url: https://www.mapbox.com
22
api: https://www.mapbox.com/core
33
tileApi: https://api.mapbox.com
44
source: docs
5-
permalink: /:categories/:title
5+
permalink: /:categories/:title/
66
baseurl: https://www.mapbox.com/mapbox-gl-js
7-
highlighter: pygments
87
excerpt_separator: ""
98
version: v0.19.1
10-
rdiscount:
11-
extensions: [smart]
129
exclude: [dist]
10+
future: true

_config.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ url: https://122e4e-mapbox.global.ssl.fastly.net
22
api: https://122e4e-mapbox.global.ssl.fastly.net/core
33
tileApi: https://api-maps-staging.tilestream.net
44
source: docs
5-
permalink: /:categories/:title
5+
permalink: /:categories/:title/
66
baseurl: /mapbox-gl-js
7-
highlighter: pygments
87
excerpt_separator: ""
98
version: v0.19.1
109
mapboxglbase: /mapbox-gl-js/dist
11-
rdiscount:
12-
extensions: [smart]
10+
future: true

docs/_layouts/default.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@
165165
</script>
166166
<script src='{% if site.baseApi %}{{site.baseApi}}{% else %}https://www.mapbox.com{% endif %}/base.js/dist/base.js'></script>
167167
{% if site.test %}<script src='{{site.url}}/test/tape.js'></script>{% endif %}
168-
{% if page.head %}{{page.head}}{% endif %}
168+
{% if page.head %}{{page.head}}{% endif %}{% if layout.head %}{{layout.head}}{% endif %}
169169
</head>
170-
<body class='{{page.class}} {{page.options}}{% if page.blog_featured == true %} bleed{% endif %}'>
170+
<body class='{{page.class}} {{page.options}} {{layout.class}} {{layout.options}}{% if page.blog_featured == true %} bleed{% endif %}'>
171171
<!-- Google Tag Manager -->
172172
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-PQR37Z" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-PQR37Z');</script>
173173
<!-- End Google Tag Manager -->
@@ -298,7 +298,7 @@ <h3>I would like to</h3>
298298
</div>
299299
</div>
300300

301-
<div class='masthead col12 clearfix {% unless page.options contains 'bleed' %}fill-blue{% endunless %} {% unless page.options contains 'light' %}dark{% endunless %} {% if page.title == 'Mapbox' %}home-nav{% endif %} {% if page.title == 'Developers' %}developers-nav{% endif %} {% if page.title == 'Education' %}education-nav{% endif %} {% if page.url contains '/gallery' %}gallery-page{% endif %}' data-swiftype-index='false'>
301+
<div class='masthead col12 clearfix {% unless page.options contains 'bleed' or layout.options contains 'bleed' %}fill-blue{% endunless %} {% unless page.options contains 'light' or layout.options contains 'light' %}dark{% endunless %} {% if page.title == 'Mapbox' %}home-nav{% endif %} {% if page.title == 'Developers' %}developers-nav{% endif %} {% if page.title == 'Education' %}education-nav{% endif %} {% if page.url contains '/gallery' %}gallery-page{% endif %}' data-swiftype-index='false'>
302302
<div class='limiter clearfix'>
303303
<nav class='col12 text-right navigation-padding-top contain animate clearfix noprint'>
304304
<a class='fl mb-logo' href='/'></a>
@@ -374,46 +374,46 @@ <h3 class='pad0y pad1x strong space-bottom1'>Products</h3>
374374
</div>
375375

376376

377-
<div class='{% unless page.options contains 'full' %} limiter clearfix{% endunless %}'>{{content}}</div>
377+
<div class='{% unless page.options contains 'full' or layout.options contains 'full' %} limiter clearfix{% endunless %}'>{{content}}</div>
378378

379379
{% unless page.url contains '/hello/directions' or page.url contains '/welcome' %}
380380
<div class='footer footer-in-docs clearfix contain hide-mobile noprint fill-light' data-swiftype-index='false'>
381381
<div class='limiter clearfix'>
382382
<div class='footer-in-docs footer-cols-in-docs clearfix col12 pad8y small'>
383383
<div class='hide-in-docs col2'>
384384
<h3 class='space-bottom1'>Overview</h3>
385-
{% for item in page.footer.mapbox %}
385+
{% for item in layout.footer.mapbox %}
386386
<a id='footer-{{item.title | downcase | replace:' ','-'}}' class='space-bottom0 quiet col12 strong' href='{{site.url}}{{item.path}}/'>{{item.title}}</a>
387387
{% endfor %}
388388
</div>
389389
<div class='col2 footer-col-in-docs'>
390390
<h3 class='space-bottom1'>About us</h3>
391-
{% for item in page.footer.aboutus %}
391+
{% for item in layout.footer.aboutus %}
392392
<a id='footer-{{item.title | downcase | replace:' ','-'}}' class='space-bottom0 col12 quiet strong' href='{{site.url}}{{item.path}}/'>{{item.title}}</a>
393393
{% endfor %}
394394
</div>
395395
<div class='col2 footer-col-in-docs'>
396396
<h3 class='space-bottom1'>Help</h3>
397-
{% for item in page.footer.support %}
397+
{% for item in layout.footer.support %}
398398
<a id='footer-{{item.title | downcase | replace:' ','-'}}' class='space-bottom0 col12 quiet strong' href='{{site.url}}{{item.path}}/'>{{item.title}}</a>
399399
{% endfor %}
400400
</div>
401401
<div class='col2 footer-col-in-docs'>
402402
<h3 class='space-bottom1'>Map design</h3>
403-
{% for item in page.footer.mapdesign %}
403+
{% for item in layout.footer.mapdesign %}
404404
<a id='footer-{{item.title | downcase | replace:' ','-'}}' class='space-bottom0 col12 quiet strong' href='{% if item.href %}{{item.href}}{% else %}{{site.url}}{{item.path}}{% endif %}/'>{{item.title}}</a>
405405
{% endfor %}
406406
</div>
407407
<div class='col2 footer-col-in-docs'>
408408
<h3 class='space-bottom1'>Developers</h3>
409-
{% for item in page.footer.developers %}
409+
{% for item in layout.footer.developers %}
410410
<a id='footer-{{item.title | downcase | replace:' ','-'}}' class='space-bottom0 col12 quiet strong' href='{% if item.href %}{{item.href}}{% else %}{{site.url}}{{item.path}}{% endif %}/'>{{item.title}}</a>
411411
{% endfor %}
412412
<a href='{{site.url}}/developers/' class='small rcon next quiet'>All developers</a>
413413
</div>
414414
<div class='hide-in-docs col2 footer-col-in-docs'>
415415
<h3 class='space-bottom1'>Industries</h3>
416-
{% for item in page.footer.industries %}
416+
{% for item in layout.footer.industries %}
417417
<a id='footer-{{item.title | downcase | replace:' ','-'}}' class='space-bottom0 col12 quiet strong' href='{% if item.href %}{{item.href}}{% else %}{{site.url}}{{item.path}}{% endif %}/'>{{item.title}}</a>
418418
{% endfor %}
419419
<a href='{{site.url}}/industries/' class='small rcon next quiet'>All industries</a>

docs/_layouts/pages.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<a class='block quiet active strong small truncate' href='{{site.baseurl}}/examples/'>Examples</a>
1919
</div>
2020
{% for eg in site.categories.example reversed %}
21-
<a href='{{site.baseurl}}{{eg.url}}/' class='block small truncate {% if eg.title == page.title %} active{% endif %}'>{{eg.title}}</a>
21+
<a href='{{site.baseurl}}{{eg.url}}' class='block small truncate {% if eg.title == page.title %} active{% endif %}'>{{eg.title}}</a>
2222
{% endfor %}
2323
{% endif %}
2424
{% if page.url contains 'api' %}

docs/_posts/examples/3400-01-01-simple-map.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
date: 1000-01-01
55
title: Display a map
66
description: Initialize a map in an HTML element with Mapbox GL JS.
7-
permalink: /examples
7+
permalink: /examples/
88
---
99
<div id='map'></div>
1010
<script>

0 commit comments

Comments
 (0)