Sha256: 2ada7c79d180cc9519ab741aa54f7a6b526fdbe56307d4568593e77782ad9224

Contents?: true

Size: 620 Bytes

Versions: 7

Compression:

Stored size: 620 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.slim
buoys-2.0.2 lib/generators/buoys/templates/_buoys.html.slim
buoys-2.0.1 lib/generators/buoys/templates/_buoys.html.slim
buoys-2.0.0 lib/generators/buoys/templates/_buoys.html.slim
buoys-1.1.0 lib/generators/buoys/templates/_buoys.html.slim
buoys-1.0.0 lib/generators/buoys/templates/_buoys.html.slim
buoys-0.6.0 lib/generators/buoys/templates/_buoys.html.slim