Sha256: 571c8cf8477ba08c7f47fe1937a4927aac6e564b7c025ce0504fe5787ba904bf

Contents?: true

Size: 472 Bytes

Versions: 7

Compression:

Stored size: 472 Bytes

Contents

- if resources_for('/').empty?
  h1 Site is empty, create some pages
- else
  - if main_sections.any?
    ul.glypto-section-list
      - main_sections.each do |r|
        li.glypto-section-list-item class="#{r.children.any? ? 'm-folder' : nil}"
          = link_to r.path
            h2.glypto-section-name
              = get_section_of_resource(r).title
            - if r.children.any?
              .glypto-section-meta = pluralize(resources_for(r.url).count, 'item')

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
middleman-sculptor-0.25.2 lib/middleman-sculptor/template/source/glyptotheque/site-index.html.slim
middleman-sculptor-0.25.1 lib/middleman-sculptor/template/source/glyptotheque/site-index.html.slim
middleman-sculptor-0.25 lib/middleman-sculptor/template/source/glyptotheque/site-index.html.slim
middleman-sculptor-0.24 lib/middleman-sculptor/template/source/glyptotheque/site-index.html.slim
middleman-sculptor-0.23 lib/middleman-sculptor/template/source/glyptotheque/site-index.html.slim
middleman-sculptor-0.22 lib/middleman-sculptor/template/source/glyptotheque/site-index.html.slim
middleman-sculptor-0.21 lib/middleman-sculptor/template/source/glyptotheque/site-index.html.slim