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

[docs] Set defaults for product metadata #1331

Merged
merged 6 commits into from
Aug 7, 2020
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions _config.publisher-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,29 @@ 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"
- scope:
path: "plugins"
values:
content_type: "example"
26 changes: 26 additions & 0 deletions _config.publisher-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,29 @@ 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"
- scope:
path: "plugins"
values:
content_type: "example"
26 changes: 26 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,29 @@ 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"
- scope:
path: "plugins"
values:
content_type: "example"
katydecorah marked this conversation as resolved.
Show resolved Hide resolved
Loading