Sha256: f2f5087a30f46f94860636a6107b0833ca97e3f0d43de9fdfa301c4674671a40

Contents?: true

Size: 621 Bytes

Versions: 7

Compression:

Stored size: 621 Bytes

Contents

- if buoys.any?
  %ol.breadcrumb{itemscope: true, itemtype: 'http://schema.org/BreadcrumbList'}
    - buoys.each.with_index(1) do |link, i|
      %li{itemprop: 'itemListElement', itemscope: true, itemtype: 'http://schema.org/ListItem'}
        - # if `link.current?` is true, link.options includes {class: 'current'}.
        - if link.current?
          %span{itemprop: 'name'}= link.text
          %meta{itemprop: 'position', content: i}
        - else
          = link_to link.url, link.options.merge(itemprop: :item) do
            %span{itemprop: 'name'}= link.text
          %meta{itemprop: 'position', content: i}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
buoys-2.1.0 lib/generators/buoys/templates/_buoys.html.haml
buoys-2.0.2 lib/generators/buoys/templates/_buoys.html.haml
buoys-2.0.1 lib/generators/buoys/templates/_buoys.html.haml
buoys-2.0.0 lib/generators/buoys/templates/_buoys.html.haml
buoys-1.1.0 lib/generators/buoys/templates/_buoys.html.haml
buoys-1.0.0 lib/generators/buoys/templates/_buoys.html.haml
buoys-0.6.0 lib/generators/buoys/templates/_buoys.html.haml