add the ethical ads div (#576)

Signed-off-by: Nicolas MASSART <nicolas.massart@consensys.net>
pull/605/head 21.1.0-RC1
Nicolas MASSART 4 years ago committed by GitHub
parent dd62f3321c
commit 62449d9515
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      custom_theme/assets/stylesheets/custom_theme.css
  2. 22
      custom_theme/main.html

@ -61,3 +61,7 @@
.md-source-date {
font-style: italic;
}
.md-sidebar__scrollwrap{
scroll-snap-type: none !important;
}

@ -48,3 +48,25 @@
{% endif %}
{{ page.content }}
{% endblock %}
{% block site_nav %}
{% if nav %}
<div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
<div class="md-sidebar__scrollwrap" style="scroll-snap-type: none;">
<div class="md-sidebar__inner">
{% include "partials/nav.html" %}
</div>
<div id="readthedocs-ethical-ads" class="flat" data-ea-publisher="readthedocs" data-ea-type="image" data-ea-campaign-types="community|house"></div>
</div>
</div>
{% endif %}
{% if page.toc %}
<div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
{% include "partials/toc.html" %}
</div>
</div>
</div>
{% endif %}
{% endblock %}

Loading…
Cancel
Save