middleman-navigation 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,8 +2,8 @@ module Middleman
|
|
2
2
|
module Navigation
|
3
3
|
class Tree
|
4
4
|
def self.build(sitemap)
|
5
|
-
app = sitemap.app
|
6
|
-
root_path = app.http_prefix + app.index_file
|
5
|
+
@app = sitemap.app
|
6
|
+
root_path = @app.http_prefix + @app.index_file
|
7
7
|
root = sitemap.find_resource_by_destination_path root_path
|
8
8
|
|
9
9
|
unless root.blank?
|
@@ -22,7 +22,7 @@ module Middleman
|
|
22
22
|
title = child.data.navigation[:title] || child.data.title
|
23
23
|
url = child.data.navigation[:destination] || child.url
|
24
24
|
|
25
|
-
level.item child.destination_path, title, url
|
25
|
+
level.item child.destination_path, title, url, :highlights_on => %r(#{url}(#{@app.index_file})?)
|
26
26
|
traverse child, level
|
27
27
|
end
|
28
28
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-navigation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-01-
|
13
|
+
date: 2013-01-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: middleman
|