Sha256: cbd841663048dad3e1489e88d4aff9fe7a54c9caa50deba148855e30b23d2797

Contents?: true

Size: 712 Bytes

Versions: 8

Compression:

Stored size: 712 Bytes

Contents

- section ||= '/'
- subpages = resources_for(section, sort_by: :nav_order, ignore: /\.component\./)

- unless subpages.empty?
  nav.glypto-nav ng-class="{'s-hidden' : hidden}"
    button.nav-toggle ng-click="toggle()"
    = link_to 'Glyptotheque', '/', class: '_logo'
    ul
      - subpages.each do |r|
        li(class="#{'s-selected' if r == current_page} #{'_index' if r.directory_index?}")
          - if r.directory_index?
            - subpages_count = resources_for(r.url, exclude_indexes: true).count
            = link_to r.url
              = (r.data.title || resource_dir(r))
              span._count = subpages_count
          - else
            = link_to (r.data.title || resource_file(r)), r.url

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sculptor-0.0.9.3 lib/sculptor/templates/glyptotheque/source/glyptotheque/_nav.slim
sculptor-0.0.9.2 lib/sculptor/templates/glyptotheque/source/glyptotheque/_nav.slim
sculptor-0.0.9.1 lib/sculptor/templates/glyptotheque/source/glyptotheque/_nav.slim
sculptor-0.0.9 lib/sculptor/templates/glyptotheque/source/glyptotheque/_nav.slim
sculptor-0.0.8 lib/sculptor/templates/glyptotheque/source/glyptotheque/_nav.slim
sculptor-0.0.7 lib/sculptor/templates/glyptotheque/source/partials/glyptotheque/_nav.slim
sculptor-0.0.6 lib/sculptor/templates/glyptotheque/source/partials/glyptotheque/_nav.slim
sculptor-0.0.5 lib/sculptor/templates/glyptotheque/source/partials/glyptotheque/_nav.slim