Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 2a4f836

Browse files
committed
better handling of serve_ad variable
1 parent ad2c362 commit 2a4f836

File tree

1 file changed

+1
-1
lines changed
  • runestone/common/project_template/_templates/plugin_layouts/sphinx_bootstrap

1 file changed

+1
-1
lines changed

runestone/common/project_template/_templates/plugin_layouts/sphinx_bootstrap/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@
279279
<!-- Ad Serving Headers Only serve ads to Anonymous Users -->
280280
{% if dynamic_pages == 'True' %}
281281
{% raw %}
282-
{% if serve_ad and settings.adsenseid %}
282+
{% if serve_ad is defined and serve_ad and settings.adsenseid %}
283283
<script data-ad-client="{{settings.adsenseid}}" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
284284
{% endif %}
285285
{% endraw %}

0 commit comments

Comments
 (0)