Sha256: 64312e95d39cd35b80d4bb46591a3690e8c6e16836fbe468db5ee82e16b3edab
Contents?: true
Size: 607 Bytes
Versions: 2
Compression:
Stored size: 607 Bytes
Contents
# frozen_string_literal: true module Kitchen module Directions module EocSectionTitleLinkSnippet def self.v1(page:) chapter = page.ancestor(:chapter) <<~HTML <a href="##{page.title.id}"> <h3 data-type="document-title" id="#{page.title.copied_id}"> <span class="os-number">#{chapter.count_in(:book)}.#{page.count_in(:chapter)}</span> <span class="os-divider"> </span> <span class="os-text" data-type="" itemprop="">#{page.title.text}</span> </h3> </a> HTML end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
openstax_kitchen-3.2.0 | lib/kitchen/directions/eoc_section_title_link_snippet.rb |
openstax_kitchen-3.1.0 | lib/kitchen/directions/eoc_section_title_link_snippet.rb |