[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) }}">
|
||||
{% if pagename != master_doc %}
|
||||
<div class="row">
|
||||
{% if 'has-toc' not in meta %}
|
||||
{% if 'has-toc' not in meta and not (pagename in toc) %}
|
||||
<aside>
|
||||
<div class="navbar-aside text-center">
|
||||
{{ toc }}
|
||||
@@ -242,7 +242,7 @@
|
||||
</div>
|
||||
</aside>
|
||||
{% 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 %}
|
||||
{% block body %} {% endblock %}
|
||||
{% 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;
|
||||
}
|
||||
}
|
||||
article.doc-body.index-category {
|
||||
min-height: 300px;
|
||||
min-height: 30vh;
|
||||
}
|
||||
article.doc-body.index-category li.toctree-l1 {
|
||||
padding: 5px 0;
|
||||
}
|
||||
.content-switcher {
|
||||
margin-top: 1.5em;
|
||||
}
|
||||
|
||||
@@ -742,6 +742,15 @@ article.doc-body {
|
||||
.lead;
|
||||
}
|
||||
}
|
||||
|
||||
&.index-category {
|
||||
min-height: 300px;
|
||||
min-height: 30vh;
|
||||
|
||||
li.toctree-l1 {
|
||||
padding: 5px 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.content-switcher {
|
||||
|
||||
Reference in New Issue
Block a user