diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html
index ba69ae4891..45bf491eab 100755
--- a/docs/_layouts/default.html
+++ b/docs/_layouts/default.html
@@ -101,7 +101,7 @@
{% endif %}{% if page.excerpt or page.description %}
{% endif %}
{% if site.baseurl == '/mapbox.js' %}{% if site.mapboxjs != page.version and page.version != 'latest' %}{% endif %}{% endif %}
- {% if page.card %}
+ {% if page.card or layout.card %}
@@ -110,7 +110,7 @@
- {% if page.video %}
+ {% if page.video or layout.video %}
@@ -119,7 +119,7 @@
- {% elsif page.image %}
+ {% elsif page.image or layout.image %}