Home

Pages Classes Methods

    Pages

    • _buoys.html.haml
    • _buoys.html.slim
    • if buoys.any? ol.breadcrumb itemscope=true itemtype=‘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

    Validate

    Generated by RDoc 6.4.0.

    Based on Darkfish by Michael Granger.