ClickHouse/website/templates/docs/content.html

43 lines
1.7 KiB
HTML
Raw Normal View History

2020-03-30 08:25:29 +00:00
<div id="content-wrapper" class="{% if single_page %}col-md-10{% else %}col-md-8{% endif %} p-2 p-md-5">
2020-05-06 19:36:50 +00:00
<div id="content" class="mt-md-n3">
2020-03-30 08:25:29 +00:00
{% if not single_page %}
{% set ancestors = page.ancestors|reverse|list %}
{% if page.is_index %}
{% set ancestors = ancestors[:-1] %}
{% endif %}
{% if ancestors %}
{% set ancestor_ns = namespace(level=ancestors|length) %}
<div class="row">
<nav class="col text-muted" aria-label="breadcrumb">
<ol class="breadcrumb bg-transparent p-0">
{% for ancestor in ancestors %}
2020-05-08 22:20:36 +00:00
<li class="breadcrumb-item"><a href="{{ '../' * ancestor_ns.level }}" class="text-reset">{{ ancestor.title.strip() }}</a>
{% set ancestor_ns.level = ancestor_ns.level - 1 %}
</li>
{% endfor %}
</ol>
</nav>
</div>
{% endif %}
{% include "templates/docs/machine-translated.html" %}
{{ page.content|adjust_markdown_html }}
2020-03-30 08:25:29 +00:00
{% endif %}
{% if single_page and page.content %}
<script type="text/javascript" src="content.js?{{ config.extra.rev_short }}"></script>
2020-03-30 08:25:29 +00:00
{% endif %}
</div>
{% include "templates/docs/footer.html" %}
2020-03-30 08:25:29 +00:00
</div>
{% if single_page and page.content %}
<!-- BREAK -->
(function() {
{% for chunk in page.content|adjust_markdown_html|chunks %}
document.write({{ chunk|tojson|safe }});
{% endfor %}
})();
<!-- BREAK -->
{% endif %}