ClickHouse/website/templates/docs/content.html
Ivan Blinkov 21d8b6288d
[docs] generate AMP versions for docs articles (#10732)
* Refactoring in preparation for AMP support

* infrastructure for AMP validation

* Add Metrika counter on AMP page + adjust layout

* more content fixes

* improve amp layout

* improve navigation

* Move converting admonitions to generation time

* strict amp test check

* Batch AMP validation

* Add date published/modified to docs articles and their ld+json meta

* few more content fixes

* improve ld+json meta

* adjust margins

* skip published/modified for stable release docs

* adapt single page mode

* update po

* skip published/modified for single page docs

* update po

* adjust layout

* adjust layout
2020-05-08 11:04:09 +03:00

24 lines
750 B
HTML

<div id="content-wrapper" class="{% if single_page %}col-md-10{% else %}col-md-8{% endif %} p-2 p-md-5">
<div id="content" class="mt-md-n3">
{% if not single_page %}
{% include "templates/docs/machine-translated.html" %}
{{ page.content|adjust_markdown_html }}
{% endif %}
{% if single_page and page.content %}
<script type="text/javascript" src="content.js?{{ config.extra.rev_short }}"></script>
{% endif %}
</div>
{% include "templates/docs/footer.html" %}
</div>
{% if single_page and page.content %}
<!-- BREAK -->
(function() {
{% for chunk in page.content|chunks %}
document.write({{ chunk|tojson|safe }});
{% endfor %}
})();
<!-- BREAK -->
{% endif %}