Sha256: ffa3943d430a2fe5a076053c4dcff749b4f97569c457f186d6d72e7bc1a107ac

Contents?: true

Size: 417 Bytes

Versions: 3

Compression:

Stored size: 417 Bytes

Contents

{% assign enable_toc = false %}
{% if site.toc and page.toc %}
  {% if page.content contains '<h2' or page.content contains '<h3' %}
    {% assign enable_toc = true %}
  {% endif %}
{% endif %}

{% if enable_toc %}
  <section id="toc-wrapper" class="ps-0 pe-4 mb-5">
    <h2 class="panel-heading ps-3 pt-2 mb-2">{{- site.data.locales[include.lang].panel.toc -}}</h2>
    <nav id="toc"></nav>
  </section>
{% endif %}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jekyll-theme-chirpy-6.2.2 _includes/toc.html
jekyll-theme-chirpy-6.2.1 _includes/toc.html
jekyll-theme-chirpy-6.2.0 _includes/toc.html