2022-01-27 17:10:37 +00:00
|
|
|
<aside class="hidden 2xl:block fixed right-0 bottom-1/2 transform translate-y-1/2 w-80 col-span-1 h-auto bg-gray-100 rounded-l-lg shadow-inner">
|
2022-01-26 13:44:47 +00:00
|
|
|
{% if page.toc %}
|
|
|
|
<div class="w-full flex items-center justify-center py-1.5 bg-gray-200 rounded-tl-lg">
|
|
|
|
<span class="uppercase tracking-wide text-xs text-garage-gray">Page content</span>
|
|
|
|
</div>
|
2022-01-27 17:10:37 +00:00
|
|
|
<ol class="text-sm space-y-0.5 px-8 py-3 list-decimal">
|
2022-01-26 13:44:47 +00:00
|
|
|
{% for h1 in page.toc %}
|
|
|
|
<li>
|
2022-01-27 17:10:37 +00:00
|
|
|
<a href="{{ h1.permalink | safe }}" class="font-semibold text-gray-800 transition-all hover:text-garage-orange">{{ h1.title }}</a>
|
2022-01-26 13:44:47 +00:00
|
|
|
{% if h1.children %}
|
|
|
|
<ul class="space-y-0.5 py-0.5">
|
|
|
|
{% for h2 in h1.children %}
|
|
|
|
<li>
|
|
|
|
<a
|
|
|
|
href="{{ h2.permalink | safe }}"
|
|
|
|
id="link-{{ h2.id | safe }}"
|
|
|
|
class="toc text-gray-700 hover:text-garage-orange">
|
|
|
|
{{ h2.title }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ol>
|
|
|
|
{% endif %}
|
|
|
|
<div class="bg-gray-100 rounded-bl-lg">
|
2022-01-31 15:28:01 +00:00
|
|
|
{% if page.earlier or page.later or page.lighter or page.heavier or page.pages %}
|
|
|
|
{% include "partials/doc/pagination.html" %}
|
|
|
|
{% elif page.ancestors and page.ancestors | length == 3 %}
|
2022-01-26 13:44:47 +00:00
|
|
|
{% include "partials/doc/pagination.html" %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2022-01-31 15:28:01 +00:00
|
|
|
</aside>
|