|
101 | 101 | <meta class='swiftype' name='author' data-type='string' content='{{page.author}}' />{% endif %}{% if page.excerpt or page.description %} |
102 | 102 | <meta class='swiftype' name='excerpt' data-type='string' content='{% if page.description %}{{ page.description | strip_html | strip_newlines | replace:"'","’" | replace:"'","’" | truncatewords: 30 }}{% else %}{{ page.excerpt | strip_html | strip_newlines | replace:"'","’" | replace:"'","’" | truncatewords: 30 }}{% endif %}' />{% endif %} |
103 | 103 | {% if site.baseurl == '/mapbox.js' %}{% if site.mapboxjs != page.version and page.version != 'latest' %}<meta name='robots' content='noindex'>{% endif %}{% endif %} |
104 | | - {% if page.card %} |
| 104 | + {% if page.card or layout.card %} |
105 | 105 | <meta name='twitter:site' content='@Mapbox' /> |
106 | 106 | <meta property='og:site_name' content='Mapbox' /> |
107 | 107 | <meta name='twitter:url' content='{{site.url}}{{site.baseurl}}{% if page.permalink %}{{page.permalink}}{% else %}{{page.url | replace:"index.html",""}}{% endif %}' /> |
|
110 | 110 | <meta property='og:title' content='{{page.title | replace:"'","’" | replace:"'","’"}}' /> |
111 | 111 | <meta name='twitter:description' content='{% if page.description %}{{ page.description | truncatewords: 30 }}{% elsif page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | replace:"'","’" | replace:"'","’" | truncatewords: 30 }}{% else %}{{content | strip_html | truncatewords: 30 }}{% endif %}' /> |
112 | 112 | <meta property='og:description' content='{% if page.description %}{{ page.description | truncatewords: 30 }}{% elsif page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | replace:"'","’" | replace:"'","’" | truncatewords: 30 }}{% else %}{{content | strip_html | truncatewords: 30 }}{% endif %}' /> |
113 | | - {% if page.video %} |
| 113 | + {% if page.video or layout.video %} |
114 | 114 | <meta name='twitter:card' content='player' /> |
115 | 115 | <meta name='twitter:player' content='{{page.video | replace: "http:" , "https:" }}' /> |
116 | 116 | <meta name='twitter:player:width' content='640' /> |
|
119 | 119 | <meta property='og:video' content='{{page.video}}' /> |
120 | 120 | <meta property='og:video:width' content='640' /> |
121 | 121 | <meta property='og:video:height' content='480' /> |
122 | | - {% elsif page.image %} |
| 122 | + {% elsif page.image or layout.image %} |
123 | 123 | <meta name='twitter:image' content='{{page.image | replace:"https:","http:"}}' /> |
124 | 124 | <meta name='st:image' content='{{page.image | replace:"https:","http:"}}' /> |
125 | 125 | <meta property='og:image' content='{{page.image | replace:"https:","http:"}}' /> |
@@ -376,7 +376,7 @@ <h3 class='pad0y pad1x strong space-bottom1'>Products</h3> |
376 | 376 |
|
377 | 377 | <div class='{% unless page.options contains 'full' or layout.options contains 'full' %} limiter clearfix{% endunless %}'>{{content}}</div> |
378 | 378 |
|
379 | | -{% unless page.url contains '/hello/directions' or page.url contains '/welcome' %} |
| 379 | +{% unless page.url contains '/hello/directions' %} |
380 | 380 | <div class='footer footer-in-docs clearfix contain hide-mobile noprint fill-light' data-swiftype-index='false'> |
381 | 381 | <div class='limiter clearfix'> |
382 | 382 | <div class='footer-in-docs footer-cols-in-docs clearfix col12 pad8y small'> |
|
0 commit comments