Sha256: 02fdf0cf30d1e328d3915503600df1c97e385e4f9bc2287e150cc29935b0c863
Contents?: true
Size: 1.44 KB
Versions: 2
Compression:
Stored size: 1.44 KB
Contents
{% case node.sectname %} {% when 'part' %} <div id="{{node.id}}" data-type="part"> <h1>{% if node.numbered %}{{ node.sectnum }} {% endif %}{{ node.title }}</h1> {{ node.content }} </div> {% when 'sect1' %} <section id="{{node.id}}" data-type="chapter"> <h1>{% if node.numbered %}{{ node.sectnum }} {% endif %}{{ node.title }}</h1> {{ node.content }} </section> {% when 'sect2' %} <section id="{{node.id}}" data-type="sect1"> <h1>{% if node.numbered %}{{ node.sectnum }} {% endif %}{{ node.title }}</h1> {{ node.content }} </section> {% when 'sect3' %} <section id="{{node.id}}" data-type="sect2"> <h2>{% if node.numbered %}{{ node.sectnum }} {% endif %}{{ node.title }}</h2> {{ node.content }} </section> {% when 'sect4' %} <section id="{{node.id}}" data-type="sect3"> <h3>{% if node.numbered %}{{ node.sectnum }} {% endif %}{{ node.title }}</h3> {{ node.content }} </section> {% when 'sect5' %} <section id="{{node.id}}" data-type="sect4"> <h4>{% if node.numbered %}{{ node.sectnum }} {% endif %}{{ node.title }}</h4> {{ node.content }} </section> {% when 'sect6' %} <section id="{{node.id}}" data-type="sect5"> <h5>{% if node.numbered %}{{ node.sectnum }} {% endif %}{{ node.title }}</h5> {{ node.content }} </section> {% else %} <section id="{{node.id}}" data-type="{{ node.sectname }}"> <h1>{{ node.caption }}{{ node.title }}</h1> {{ node.content }} </section> {% endcase %}
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
asciidoctor-htmlbook-0.0.6 | templates/section.html |
asciidoctor-htmlbook-0.0.5 | templates/section.html |