Skip to content

Commit

Permalink
Merge pull request #10 from evildmp/bethcollins92-hide-toc-sometimes
Browse files Browse the repository at this point in the history
Bethcollins92 hide toc sometimes
  • Loading branch information
evildmp committed Oct 19, 2021
2 parents 7cdf006 + 1899738 commit a564688
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion about-repository/repertoire.rst
@@ -1,5 +1,5 @@
:sequential_nav: both

:hide-toc:

===============================================
Repertoire
Expand Down
7 changes: 7 additions & 0 deletions vanilla/page.html
Expand Up @@ -2,6 +2,7 @@

{% if meta %}
{% set sequential_nav = meta.sequential_nav %}
{% set hide_toc = "hide-toc" in meta %}
{% endif %}

{% block body -%}
Expand Down Expand Up @@ -65,7 +66,11 @@
</div>
</div>
</div>
{% if hide_toc %}
<main class="col-8">
{% else %}
<main class="col-7">
{% endif %}
{% block content %}{{ body }}{% endblock %}
<footer>
{% block footer %}
Expand Down Expand Up @@ -137,6 +142,7 @@
{% endblock footer %}
</footer>
</main>
{% if not hide_toc %}
<div class="col-3">
<aside class="p-side-navigation--raw-html is-sticky">
{% block right_sidebar %}
Expand All @@ -147,6 +153,7 @@ <h3>
{% endblock right_sidebar %}
</aside>
</div>
{% endif %}
</div>
</section>

Expand Down

0 comments on commit a564688

Please sign in to comment.