Madelena Mak 138aa062ea
A wider website and documentation navigation revamp (#33601)
Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2024-07-16 13:40:34 +02:00

30 lines
915 B
HTML

<div class="grid">
{% include site/vertical_nav.html %}
{% if page.toc %}
{%- unless page.no_toc -%}
<section id="toc-module" class="aside-module grid__item one-whole lap-one-half">
<div class='section'>
<h1 class="title epsilon">{% icon "mdi:toc" %} On this page</h1>
{{ content | toc_only }}
</div>
</section>
{%- endunless -%}
{% endif %}
{%- if page.ha_category.first -%}
<section id="category-module" class="aside-module grid__item one-whole lap-one-half">
<div class='section'>
<h1 class="title epsilon">{% icon "mdi:category" %} Categories</h1>
<ul class='divided'>
{%- for category in page.ha_category -%}
<li>
<a href='/integrations/#{{ category | slugify }}'>{{ category }}</a>
</li>
{%- endfor -%}
</ul>
</div>
</section>
{%- endif -%}
</div>