radiant-navigation_tags-extension 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/navigation_tags.rb +1 -1
- data/lib/radiant-navigation_tags-extension.rb +1 -1
- metadata +3 -3
data/lib/navigation_tags.rb
CHANGED
@@ -131,7 +131,7 @@ module NavigationTags
|
|
131
131
|
|
132
132
|
def label_for_page page
|
133
133
|
# labels="/:Home,/portfolio:Our work"
|
134
|
-
if @labels && matched_label = @labels.split(',').select{|l| l.split(':').first == page.path}.first.
|
134
|
+
if @labels && matched_label = @labels.split(',').select{|l| l.split(':').first == page.path}.first.try(:split, ':').try(:last)
|
135
135
|
escape_once(matched_label)
|
136
136
|
else
|
137
137
|
escape_once(page.breadcrumb)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-navigation_tags-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 6
|
10
|
+
version: 0.2.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Benny Degezelle
|