middleman-sculptor 0.15 → 0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6cae08106a9ab3356c832c1e403cc0ec3eea51c8
4
- data.tar.gz: 7623ef4cbec304de168d326461bdf7e0f6d2b5c2
3
+ metadata.gz: 02827e1d57fc45ca687d67099a6f7589af9e0a11
4
+ data.tar.gz: 732e3d365f4d9dcd5d48989dd5e9afa126d04128
5
5
  SHA512:
6
- metadata.gz: c1dd7170d89cacbe527109dfc9d5450a83c3fd39ff224c47e64272510261ff867071b1e595895ae4736090cb3b5972da4598a0a1f704bf8e8fb9db4528d4eea6
7
- data.tar.gz: 879e487dcc75c46c948b0c9c4f01353e7bb3788db4531a9dc5004a27f6d54efca80123c104500d45a66b7b4c3af377be2dc784ad1a5dd046eaba61530ea7bbaa
6
+ metadata.gz: 41ab5524edab1c38161144e20baf1c4881a90cbae387722badcefc1f78080888cbec172d873ea0ac2660a01606b18bf2e76258498b6a94c556bdf0f23bd53e72
7
+ data.tar.gz: 1ebb779121b2bacf3c27fe8ac4a1fff657504b20db9e1e99294f1b2c29b8ee4a7a0edcfe123d2bd2dd6700157ceae9e05d81e1d4992acddb1e31d20b426f62ed
@@ -34,7 +34,6 @@ ready do
34
34
  resources.each do |r|
35
35
  # Create virtual index files
36
36
  dir = File.dirname(r.path)
37
- section_slug = dir.downcase.strip.gsub(' ', '-').gsub(/[^\w-]/, '-')
38
37
  index_exists = !!sitemap.find_resource_by_path("#{dir}/index.html")
39
38
  if last_dir != dir && !index_exists
40
39
  proxy "#{dir}/index.html", 'glyptotheque/directory-index.html', locals: {
@@ -0,0 +1,8 @@
1
+ .glypto-breadcrumbs
2
+ => link_to site_title, '/'
3
+ - if current_page.parent.url != '/'
4
+ span.sep ›
5
+ - if current_page.parent.data.title
6
+ =< link_to current_page.parent.data.title, current_page.parent.url
7
+ - else
8
+ =< link_to current_page.parent.metadata.locals.section.title, current_page.parent.url
@@ -14,11 +14,7 @@
14
14
  header.glypto-header
15
15
  .glypto-container
16
16
  - if current_page.parent
17
- .glypto-breadcrumbs
18
- => link_to site_title, '/'
19
- - if current_page.parent.url != '/'
20
- span.sep ›
21
- =< link_to current_page.parent.metadata.locals.section.title, current_page.parent.url
17
+ = partial 'glyptotheque/breadcrumbs'
22
18
 
23
19
  - if current_page.data.title
24
20
  h1.glypto-title = current_page.data.title
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module Sculptor
3
- VERSION = "0.15"
3
+ VERSION = "0.16"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-sculptor
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.15'
4
+ version: '0.16'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyom Semonov
@@ -154,6 +154,7 @@ files:
154
154
  - lib/middleman-sculptor/template/source/assets/styles/pygments/colorful.css
155
155
  - lib/middleman-sculptor/template/source/assets/styles/pygments/github.css
156
156
  - lib/middleman-sculptor/template/source/assets/styles/pygments/trac.css
157
+ - lib/middleman-sculptor/template/source/glyptotheque/_breadcrumbs.html.slim
157
158
  - lib/middleman-sculptor/template/source/glyptotheque/_model-outline-element.slim
158
159
  - lib/middleman-sculptor/template/source/glyptotheque/_model-outline.slim
159
160
  - lib/middleman-sculptor/template/source/glyptotheque/_model-utils.slim