[IMP] doc: define a layout for 'category index' pages
These pages were indexed by google but did not have any layout defined.
This commit is contained in:
@@ -230,7 +230,7 @@
|
|||||||
<main class="container-fluid {{ ' '.join(classes) }}">
|
<main class="container-fluid {{ ' '.join(classes) }}">
|
||||||
{% if pagename != master_doc %}
|
{% if pagename != master_doc %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
{% if 'has-toc' not in meta %}
|
{% if 'has-toc' not in meta and not (pagename in toc) %}
|
||||||
<aside>
|
<aside>
|
||||||
<div class="navbar-aside text-center">
|
<div class="navbar-aside text-center">
|
||||||
{{ toc }}
|
{{ toc }}
|
||||||
@@ -242,7 +242,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<article class="doc-body {% if 'has-toc' in meta %}doc-toc{% endif %}">
|
<article class="doc-body {% if 'has-toc' in meta %}doc-toc{% endif %}{% if pagename in toc%}index-category{% endif %}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% block body %} {% endblock %}
|
{% block body %} {% endblock %}
|
||||||
{% if pagename != master_doc %}</article>
|
{% if pagename != master_doc %}</article>
|
||||||
|
|||||||
@@ -12353,6 +12353,13 @@ article.doc-body section.doc-content:first-of-type > p:first-child {
|
|||||||
font-size: 22.5px;
|
font-size: 22.5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
article.doc-body.index-category {
|
||||||
|
min-height: 300px;
|
||||||
|
min-height: 30vh;
|
||||||
|
}
|
||||||
|
article.doc-body.index-category li.toctree-l1 {
|
||||||
|
padding: 5px 0;
|
||||||
|
}
|
||||||
.content-switcher {
|
.content-switcher {
|
||||||
margin-top: 1.5em;
|
margin-top: 1.5em;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -742,6 +742,15 @@ article.doc-body {
|
|||||||
.lead;
|
.lead;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.index-category {
|
||||||
|
min-height: 300px;
|
||||||
|
min-height: 30vh;
|
||||||
|
|
||||||
|
li.toctree-l1 {
|
||||||
|
padding: 5px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-switcher {
|
.content-switcher {
|
||||||
|
|||||||
Reference in New Issue
Block a user