1
0
mirror of https://github.com/minio/docs.git synced 2025-08-27 03:42:05 +03:00
Files
docs/source/_templates/layout.html

120 lines
3.4 KiB
HTML

{# Import the theme's layout. #}
{% extends "!layout.html" %}
{# Custom CSS overrides #}
{% block extrahead %}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-56860620-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-56860620-1');
</script>
<!-- Crazy egg analytics script -->
<script type="text/javascript" src="//script.crazyegg.com/pages/scripts/0088/9671.js" async="async"></script>
<!-- Lucky Orange analytics script -->
<script type='text/javascript'>
window.__lo_site_id = 226538;
(function() {
var wa = document.createElement('script'); wa.type = 'text/javascript'; wa.async = true;
wa.src = 'https://d10lpsik1i8c69.cloudfront.net/w.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(wa, s);
}
)();
</script>
{{ super() }}
{% endblock %}
{# Override content block #}
{%- macro miniosidebar() %}
{%- if render_sidebar %}
<nav
class="docs"
role="navigation"
>
{%- block sidebarlogo %}
{%- if logo %}
<p class="logo">
<a href="{{ pathto(master_doc)|e }}">
<img
class="logo"
src="{{ pathto('_static/' + logo, 1)|e }}"
alt="Logo"
/>
</a>
</p>
{%- endif %}
{%- endblock %}
{%- if sidebars != None %}
{#- new style sidebar: explicitly include/exclude templates #}
{%- for sidebartemplate in sidebars %}
{%- include sidebartemplate %}
{%- endfor %}
{%- else %}
{#- old style sidebars: using blocks -- should be deprecated #}
{%- block sidebarrel %}
{%- include "relations.html" %}
{%- endblock %}
{%- block sidebarsourcelink %}
{%- include "sourcelink.html" %}
{%- endblock %}
{%- if customsidebar %}
{%- include customsidebar %}
{%- endif %}
{%- block sidebarsearch %}
{%- include "searchbox.html" %}
{%- endblock %}
{%- endif %}
</nav>
{%- endif %}
{%- endmacro %}
{%- block header %}
{%- include "header.html" %}
{%- endblock %}
{%- block content %}
<section class="content">
{%- include "content-navigation.html" %}
<div class="container">
<div class="content__inner">
<div class="sidebar scrollbar">
<div class="hide-aside visible-rm">
<button type="button" class="icon">
{%- include "icons/close.html" %}
Close Doc Navigation
</button>
</div>
<a class="sidebar__title" href="{{ pathto('index') }}">{{ shorttitle}}</a>
{{ miniosidebar() }}
</div>
{%- include "toc.html" %}
<div class="content__main">
{% block body %} {% endblock %}
</div>
</div>
</div>
{%- include "footer.html" %}
</section>
{%- endblock %}
{%- block footer %}
{%- include "cookie.html" %}
{%- endblock %}