Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
open
middleman-recursive-nav
Commits
e05c74d4
Commit
e05c74d4
authored
Apr 20, 2018
by
Chris Snijder
🏅
Browse files
Don't be so verbose.
parent
9dbb8b80
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/middleman-recursive-nav/extension.rb
View file @
e05c74d4
...
...
@@ -67,9 +67,9 @@ class RecursiveNav < ::Middleman::Extension
def
_meta_file
(
path
)
meta_file
=
File
.
join
path
,
"_meta.y{ml,aml}"
if
(
files
=
Dir
.
glob
(
meta_file
)).
length
>
0
puts
"== File(s)
\"
#{
files
.
join
(
", "
)
}
\"
exist(s)."
#
puts "== File(s) \"#{files.join(", ")}\" exist(s)."
else
puts
"== File
\"
#{
meta_file
}
\"
does not exist."
#
puts "== File \"#{meta_file}\" does not exist."
return
nil
end
files
.
each
do
|
f
|
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment