Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
[docs] Set defaults for product metadata (#1331)
Browse files Browse the repository at this point in the history
* Set defaults for every page: products, services, and platforms

* Add comment

* Update docs-page-shell

* Set contentType

* Update default.html

* Do not set content_type for plugins page
  • Loading branch information
Katy DeCorah authored Aug 7, 2020
1 parent c3cecfe commit 1db88e7
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 8 deletions.
22 changes: 22 additions & 0 deletions _config.publisher-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,25 @@ future: true
accessToken: pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejh2N21nMzAxMmQzMnA5emRyN2lucW0ifQ.jSE-g2vsn48Ry928pqylcg
plugins:
- jekyll-sitemap

# This metadata is required on all pages
defaults:
# Set products/services/platforms for every page
- scope:
path: ""
values:
products:
- Mapbox.js
services:
- maps
platforms:
- web
# Set contentType conditionally
- scope:
path: "_posts/examples"
values:
content_type: "example"
- scope:
path: "_posts/api"
values:
content_type: "API"
22 changes: 22 additions & 0 deletions _config.publisher-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,25 @@ exclude: [dist]
future: true
plugins:
- jekyll-sitemap

# This metadata is required on all pages
defaults:
# Set products/services/platforms for every page
- scope:
path: ""
values:
products:
- Mapbox.js
services:
- maps
platforms:
- web
# Set contentType conditionally
- scope:
path: "_posts/examples"
values:
content_type: "example"
- scope:
path: "_posts/api"
values:
content_type: "API"
22 changes: 22 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,25 @@ defaultid: 'mapbox.streets'
future: true
plugins:
- jekyll-sitemap

# This metadata is required on all pages
defaults:
# Set products/services/platforms for every page
- scope:
path: ""
values:
products:
- Mapbox.js
services:
- maps
platforms:
- web
# Set contentType conditionally
- scope:
path: "_posts/examples"
values:
content_type: "example"
- scope:
path: "_posts/api"
values:
content_type: "API"
Loading

0 comments on commit 1db88e7

Please sign in to comment.