-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs: move Carbon ads to sidebar (#3302)
- Loading branch information
Showing
3 changed files
with
51 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,47 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
{% include "partials/content.html" %} | ||
<hr/> | ||
<div style="margin: 0 auto; max-width: 400px; margin-top: 40px;"> | ||
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CWYIL2JU&placement=gethomepagedev&format=cover" id="_carbonads_js"></script> | ||
</div> | ||
{% block site_nav %} | ||
<!-- Navigation --> | ||
{% if nav %} | ||
{% if page.meta and page.meta.hide %} | ||
{% set hidden = "hidden" if "navigation" in page.meta.hide %} | ||
{% endif %} | ||
<div | ||
class="md-sidebar md-sidebar--primary" | ||
data-md-component="sidebar" | ||
data-md-type="navigation" | ||
{{ hidden }} | ||
> | ||
<div class="md-sidebar__scrollwrap"> | ||
<div class="md-sidebar__inner"> | ||
{% include "partials/nav.html" %} | ||
{% if 'widgets/' not in page.url %} | ||
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CWYIL2JU&placement=gethomepagedev&format=cover" id="_carbonads_js"></script> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
{% endif %} | ||
|
||
<!-- Table of contents --> | ||
{% if "toc.integrate" not in features %} | ||
{% if page.meta and page.meta.hide %} | ||
{% set hidden = "hidden" if "toc" in page.meta.hide %} | ||
{% endif %} | ||
<div | ||
class="md-sidebar md-sidebar--secondary" | ||
data-md-component="sidebar" | ||
data-md-type="toc" | ||
{{ hidden }} | ||
> | ||
<div class="md-sidebar__scrollwrap"> | ||
<div class="md-sidebar__inner"> | ||
{% include "partials/toc.html" %} | ||
{% if 'widgets/' in page.url %} | ||
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CWYIL2JU&placement=gethomepagedev&format=cover" id="_carbonads_js"></script> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
{% endif %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters