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

Commit e0543c8

Browse files
committed
Make ethical ads the default
1 parent 8c813ea commit e0543c8

File tree

1 file changed

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

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
{# Override the scripts block from sphinx so we can force loading of jquery/underscore/doctools js files #}
2424
{{ js_defer(script_files) }}
2525
{{ super() }}
26+
<script src="https://media.ethicalads.io/media/client/ethicalads.min.js"></script>
2627
{%- endblock %}
2728

2829
{# Sidebar: Rework into our Boostrap nav section. #}
@@ -342,7 +343,9 @@ <h4>Before you keep reading...</h4>
342343
{% if dynamic_pages == 'True' %}
343344
{% raw %}
344345
{% if show_ethical_ad %}
345-
<div data-ea-publisher="runestoneacademy" data-ea-type="image" data-ea-style="stickybox"></div>
346+
<div style="width: 100%">
347+
<div data-ea-publisher="runestoneacademy" data-ea-type="image" style="display: flex; justify-content: center"></div>
348+
</div>
346349
{% endif %}
347350
{% endraw %}
348351
{% endif %}

0 commit comments

Comments
 (0)