 without <li> elements is empty. Only generate a TOC <div> for non-empty TOCs.
{% endcomment -%}

{% if toc contains "<li" -%}
<div
  id="site-toc{{id-suffix}}"
  class="site-toc site-toc--{{include.kind}} {{include.class}}"
  {% if include.kind == 'side' %}data-fixed-column{% endif %}
>
  <header class="site-toc__title">
    {{include.header | default: 'Contents'}}
    {% unless include.kind == 'inline' -%}
      <button type="button" class="btn site-toc--button__page-top" aria-label="Page top"></button>
 