diff --git a/_config.yml b/_config.yml index d071b59..3798319 100644 --- a/_config.yml +++ b/_config.yml @@ -37,6 +37,7 @@ defaults: type: docs values: layout: page + ads: true timezone: UTC strict_front_matter: true diff --git a/src/_layouts/default.html b/src/_layouts/default.html index b3e5c6f..9a12bd3 100644 --- a/src/_layouts/default.html +++ b/src/_layouts/default.html @@ -16,7 +16,7 @@ {% include google_analytics.html %} {%- endif %} - {%- if page.layout == "page" and jekyll.environment == "production" %} + {%- if page.ads and jekyll.environment == "production" %} {% include ad.html %} {%- endif %} @@ -30,9 +30,9 @@