<div class="grid">
  {% assign url_parts = page.url | split: '/' %}
  {% if url_parts[1] == 'components' %}
    {% include asides/component_navigation.html | compact_newlines %}
  {% elsif url_parts[1] == 'cookbook' %}
    {% include asides/cookbook_navigation.html | compact_newlines %}
  {% elsif url_parts[1] == 'developers' %}
    {% include asides/developers_navigation.html | compact_newlines %}
  {% elsif url_parts[1] == 'getting-started' %}
    {% include asides/getting_started_navigation.html | compact_newlines %}
  {% elsif url_parts[1] == 'docs' %}
    {% include asides/docs_navigation.html | compact_newlines %}
  {% elsif url_parts[1] == 'faq' %}
    {% include asides/faq_navigation.html | compact_newlines %}
  {% elsif url_parts[1] == 'hassio' or url_parts[1] == 'addons' %}
    {% include asides/hassio_navigation.html | compact_newlines %}
  {% else %}
    {% include asides/about.html %}

    {% if page.blog_index %}
      {% include asides/categories.html %}
    {% else %}
      {% include post/sharing.html %}
      {% include asides/recent_posts.html %}
    {% endif %}
  {% endif %}
</div>
