Docs: move Carbon ads to sidebar (#3302)

pull/3313/head
Ben Phelps 7 months ago committed by GitHub
parent 2c68f1e7ee
commit 60098d3909
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,9 +1,47 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block site_nav %}
{% include "partials/content.html" %} <!-- Navigation -->
<hr/> {% if nav %}
<div style="margin: 0 auto; max-width: 400px; margin-top: 40px;"> {% 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> <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>
</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 %} {% endblock %}

@ -23,6 +23,10 @@
font-family: var(--md-text-font) !important; font-family: var(--md-text-font) !important;
} }
#carbonads {
margin-top: 10px;
}
#carbon-responsive { #carbon-responsive {
--carbon-padding: 1em; --carbon-padding: 1em;
--carbon-max-char: 20ch; --carbon-max-char: 20ch;

@ -90,6 +90,7 @@ nav:
- widgets/services/mylar.md - widgets/services/mylar.md
- widgets/services/navidrome.md - widgets/services/navidrome.md
- widgets/services/netdata.md - widgets/services/netdata.md
- widgets/services/netalertx.md
- widgets/services/nextcloud.md - widgets/services/nextcloud.md
- widgets/services/nextdns.md - widgets/services/nextdns.md
- widgets/services/nginx-proxy-manager.md - widgets/services/nginx-proxy-manager.md
@ -100,12 +101,12 @@ nav:
- widgets/services/opendtu.md - widgets/services/opendtu.md
- widgets/services/openmediavault.md - widgets/services/openmediavault.md
- widgets/services/opnsense.md - widgets/services/opnsense.md
- widgets/services/openwrt.md
- widgets/services/overseerr.md - widgets/services/overseerr.md
- widgets/services/paperlessngx.md - widgets/services/paperlessngx.md
- widgets/services/peanut.md - widgets/services/peanut.md
- widgets/services/pfsense.md - widgets/services/pfsense.md
- widgets/services/photoprism.md - widgets/services/photoprism.md
- widgets/services/pialert.md
- widgets/services/pihole.md - widgets/services/pihole.md
- widgets/services/plantit.md - widgets/services/plantit.md
- widgets/services/plex-tautulli.md - widgets/services/plex-tautulli.md
@ -130,6 +131,7 @@ nav:
- widgets/services/stash.md - widgets/services/stash.md
- widgets/services/syncthing-relay-server.md - widgets/services/syncthing-relay-server.md
- widgets/services/tailscale.md - widgets/services/tailscale.md
- widgets/services/tandoor.md
- widgets/services/tdarr.md - widgets/services/tdarr.md
- widgets/services/traefik.md - widgets/services/traefik.md
- widgets/services/transmission.md - widgets/services/transmission.md

Loading…
Cancel
Save