Sha256: 3054e6b75f0a75c483b081d3cbbc4a598bd71d018df274e8dd02d8c4d64ef1e1

Contents?: true

Size: 972 Bytes

Versions: 1

Compression:

Stored size: 972 Bytes

Contents

- content_for :page_title,  page_title
- content_for :ng_app,      'glyptotheque'
- content_for :stylesheets, stylesheet_link_tag('/glyptotheque/styles/main')
- content_for :body_class,  "section-#{get_section_of_resource(current_page).slug}"
- content_for :javascripts,  javascript_include_tag('assets/scripts/glyptotheque.bundle')

= wrap_layout :layout do
  - if resource_tree('/').any?
    = partial 'glyptotheque/nav'

  main.glyptotheque
    header.glypto-header
      .glypto-container
        - if current_page.parent
          .glypto-breadcrumbs = breadcrumbs

        - if current_page.data.title
          h1.glypto-title = current_page.data.title || getcurrent_page
        - elsif get_section_of_resource(current_page)
          h1.glypto-title = get_section_of_resource(current_page).title
    .glypto-container = yield

  javascript:
    APP_CONTEXT = {
      sitemap: #{partial 'glyptotheque/sitemap.json'},
      current_url: "#{current_page.url}"
    }

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
middleman-sculptor-0.25 lib/middleman-sculptor/template/source/layouts/glyptotheque.slim