Skip to content

Commit

Permalink
add the ethical ads div (#576)
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas MASSART <nicolas.massart@consensys.net>
  • Loading branch information
NicolasMassart committed Jan 27, 2021
1 parent dd62f33 commit 62449d9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom_theme/assets/stylesheets/custom_theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,7 @@
.md-source-date {
font-style: italic;
}

.md-sidebar__scrollwrap{
scroll-snap-type: none !important;
}
22 changes: 22 additions & 0 deletions custom_theme/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,25 @@ <h1>{{ page.title | default(config.site_name, true)}}</h1>
{% 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 %}

0 comments on commit 62449d9

Please sign in to comment.