Sha256: bfdcb38a42a531a0e919f522abd4d89ef32378d2878f761bc0a2011d01b7b598

Contents?: true

Size: 475 Bytes

Versions: 4

Compression:

Stored size: 475 Bytes

Contents

- unless sections.empty?
  / XXX: opts[:toclevels] is workaround for Opal (see asciidoctor-templates-compiler)
  - toclevels ||= opts[:toclevels] || (document.attr 'toclevels', DEFAULT_TOCLEVELS).to_i
  - slevel = section_level sections.first
  ol.toc-list class="level-#{slevel}"
    - sections.each do |sec|
      li
        a href="##{sec.id}" =section_title sec
        - if (sec.level < toclevels) && (child_toc = converter.convert sec, 'outline')
          = child_toc

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
asciidoctor-html5s-0.3.0 data/templates/outline.html.slim
asciidoctor-html5s-0.2.1 data/templates/outline.html.slim
asciidoctor-html5s-0.2.0 data/templates/outline.html.slim
asciidoctor-html5s-0.1.0 data/templates/outline.html.slim